GoDoxy/internal/net/gphttp/httpheaders/websocket.go
yusing 8fe94d6d14 feat(socket-proxy): implement Docker socket proxy and related configurations
- Updated Dockerfile and Makefile for socket-proxy build.
- Modified go.mod to include necessary dependencies.
- Updated CI workflows for socket-proxy integration.
- Better module isolation
- Code refactor
2025-05-10 09:47:03 +08:00

9 lines
124 B
Go

package httpheaders
import (
"net/http"
)
func IsWebsocket(h http.Header) bool {
return UpgradeType(h) == "websocket"
}