MCPcopy Create free account
hub / github.com/WICG/webpackage / isKeyChar

Function isKeyChar

go/signedexchange/structuredheader/parser.go:329–331  ·  view source on GitHub ↗

isKeyChar returns true if c is allowed in subsequent characters of Keys.

(c byte)

Source from the content-addressed store, hash-verified

327
328// isKeyChar returns true if c is allowed in subsequent characters of Keys.
329func isKeyChar(c byte) bool {
330 return isLCAlpha(c) || isDigit(c) || c == '_' || c == '-'
331}
332
333// isTokenChar returns true if c is allowed in subsequent characters of Tokens.
334func isTokenChar(c byte) bool {

Callers 2

parseKeyMethod · 0.85
isValidKeyFunction · 0.85

Calls 2

isLCAlphaFunction · 0.85
isDigitFunction · 0.85

Tested by

no test coverage detected