MCPcopy
hub / github.com/coder/websocket / match

Function match

accept.go:262–264  ·  view source on GitHub ↗
(pattern, s string)

Source from the content-addressed store, hash-verified

260}
261
262func match(pattern, s string) (bool, error) {
263 return path.Match(strings.ToLower(pattern), strings.ToLower(s))
264}
265
266func selectSubprotocol(r *http.Request, subprotocols []string) string {
267 cps := headerTokens(r.Header, "Sec-WebSocket-Protocol")

Callers 1

authenticateOriginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…