MCPcopy
hub / github.com/gorilla/websocket / nextToken

Function nextToken

util.go:129–137  ·  view source on GitHub ↗

nextToken returns the leading RFC 2616 token of s and the string following the token.

(s string)

Source from the content-addressed store, hash-verified

127// nextToken returns the leading RFC 2616 token of s and the string following
128// the token.
129func nextToken(s string) (token, rest string) {
130 i := 0
131 for ; i < len(s); i++ {
132 if !isTokenOctet[s[i]] {
133 break
134 }
135 }
136 return s[:i], s[i:]
137}
138
139// nextTokenOrQuoted returns the leading token or quoted string per RFC 2616
140// and the string following the token or quoted string.

Callers 3

nextTokenOrQuotedFunction · 0.85
tokenListContainsValueFunction · 0.85
parseExtensionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected