MCPcopy Index your code
hub / github.com/coder/websocket / headerContainsTokenIgnoreCase

Function headerContainsTokenIgnoreCase

accept.go:320–327  ·  view source on GitHub ↗
(h http.Header, key, token string)

Source from the content-addressed store, hash-verified

318}
319
320func headerContainsTokenIgnoreCase(h http.Header, key, token string) bool {
321 for _, t := range headerTokens(h, key) {
322 if strings.EqualFold(t, token) {
323 return true
324 }
325 }
326 return false
327}
328
329type websocketExtension struct {
330 name string

Callers 2

verifyServerResponseFunction · 0.85
verifyClientRequestFunction · 0.85

Calls 1

headerTokensFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…