mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-16 16:17:38 +03:00
Explicitly state that the hijacked connection cannot be used after returning from HijackHandler
This commit is contained in:
@@ -321,6 +321,8 @@ type RequestCtx struct {
|
||||
// HijackHandler must process the hijacked connection c.
|
||||
//
|
||||
// The connection c is automatically closed after returning from HijackHandler.
|
||||
//
|
||||
// The connection c must not be used after returning from the handler.
|
||||
type HijackHandler func(c net.Conn)
|
||||
|
||||
// Hijack registers the given handler for connection hijacking.
|
||||
|
||||
Reference in New Issue
Block a user