mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
add Context.ResponseWriter.IsHijacked to report whether the underline conn is already hijacked and a lot of cleanup and minor ws stress test example improvements
Former-commit-id: 444d4f0718d5c6d7544834c5e44dafb872980238
This commit is contained in:
2
cache/client/handler.go
vendored
2
cache/client/handler.go
vendored
@@ -125,7 +125,7 @@ func (h *Handler) ServeHTTP(ctx context.Context) {
|
||||
// if it's expired, then execute the original handler
|
||||
// with our custom response recorder response writer
|
||||
// because the net/http doesn't give us
|
||||
// a built'n way to get the status code & body
|
||||
// a builtin way to get the status code & body
|
||||
recorder := ctx.Recorder()
|
||||
bodyHandler(ctx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user