Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit f0b4d8e

Browse files
mariashgeofffranks
authored andcommitted
Enable full duplex mode for HTTP/1 requests
To allow concurrent reading from the request and writing the response. * Add Unwrap to ResponseWriter to satisfy http.ResponseController support (Go 1.20+) https://pkg.go.dev/net/http#NewResponseController https://www.pivotaltracker.com/story/show/182988664
1 parent 9c55e9c commit f0b4d8e

39 files changed

+157
-35
lines changed

handlers/access_log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"code.cloudfoundry.org/gorouter/proxy/utils"
1414

1515
"github.com/uber-go/zap"
16-
"github.com/urfave/negroni"
16+
"github.com/urfave/negroni/v3"
1717
)
1818

1919
type accessLog struct {

handlers/access_log_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
. "github.com/onsi/ginkgo/v2"
1717
. "github.com/onsi/gomega"
18-
"github.com/urfave/negroni"
18+
"github.com/urfave/negroni/v3"
1919
)
2020

2121
var _ = Describe("AccessLog", func() {

handlers/clientcert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"code.cloudfoundry.org/gorouter/logger"
1313
"code.cloudfoundry.org/gorouter/routeservice"
1414
"github.com/uber-go/zap"
15-
"github.com/urfave/negroni"
15+
"github.com/urfave/negroni/v3"
1616
)
1717

1818
const xfcc = "X-Forwarded-Client-Cert"

handlers/clientcert_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
. "github.com/onsi/ginkgo/v2"
1919
. "github.com/onsi/gomega"
2020
"github.com/uber-go/zap"
21-
"github.com/urfave/negroni"
21+
"github.com/urfave/negroni/v3"
2222
)
2323

2424
var _ = Describe("Clientcert", func() {

handlers/http_rewrite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package handlers
33
import (
44
"net/http"
55

6-
"github.com/urfave/negroni"
6+
"github.com/urfave/negroni/v3"
77

88
"code.cloudfoundry.org/gorouter/config"
99
"code.cloudfoundry.org/gorouter/proxy/utils"

handlers/http_rewrite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"code.cloudfoundry.org/gorouter/handlers"
99
logger_fakes "code.cloudfoundry.org/gorouter/logger/fakes"
1010

11-
"github.com/urfave/negroni"
11+
"github.com/urfave/negroni/v3"
1212

1313
. "github.com/onsi/ginkgo/v2"
1414
. "github.com/onsi/gomega"

handlers/httplatencyprometheus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"time"
66

77
metrics "code.cloudfoundry.org/go-metric-registry"
8-
"github.com/urfave/negroni"
8+
"github.com/urfave/negroni/v3"
99
)
1010

1111
type Registry interface {

handlers/httplatencyprometheus_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
. "github.com/onsi/ginkgo/v2"
1616
. "github.com/onsi/gomega"
17-
"github.com/urfave/negroni"
17+
"github.com/urfave/negroni/v3"
1818
)
1919

2020
var _ = Describe("Http Prometheus Latency", func() {

handlers/httpstartstop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/cloudfoundry/sonde-go/events"
1313
uuid "github.com/nu7hatch/gouuid"
1414
"github.com/uber-go/zap"
15-
"github.com/urfave/negroni"
15+
"github.com/urfave/negroni/v3"
1616
"google.golang.org/protobuf/proto"
1717
)
1818

handlers/httpstartstop_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
. "github.com/onsi/ginkgo/v2"
2222
. "github.com/onsi/gomega"
2323
"github.com/onsi/gomega/gbytes"
24-
"github.com/urfave/negroni"
24+
"github.com/urfave/negroni/v3"
2525
)
2626

2727
func findEnvelope(fakeEmitter *fake.FakeEventEmitter, eventType events.Envelope_EventType) *events.Envelope {

0 commit comments

Comments
 (0)