well-goknown/vendor/github.com/fasthttp/websocket/server_utils.go
2024-09-25 21:59:44 -04:00

14 lines
246 B
Go

//go:build go1.20 || go1.21 || go1.22
package websocket
import (
"bufio"
"net"
"net/http"
)
func HijackResponse(_ *http.Request, w http.ResponseWriter) (net.Conn, *bufio.ReadWriter, error) {
return http.NewResponseController(w).Hijack()
}