well-goknown/vendor/github.com/fasthttp/websocket/server_utils.go

14 lines
246 B
Go
Raw Permalink Normal View History

2024-09-26 01:59:44 +00:00
//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()
}