mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00

- 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
9 lines
124 B
Go
9 lines
124 B
Go
package httpheaders
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func IsWebsocket(h http.Header) bool {
|
|
return UpgradeType(h) == "websocket"
|
|
}
|