MCPcopy Index your code
hub / github.com/dunglas/httpsfv / isKeyChar

Function isKeyChar

key.go:13–24  ·  view source on GitHub ↗

isKeyChar checks if c is a valid key characters.

(c byte)

Source from the content-addressed store, hash-verified

11
12// isKeyChar checks if c is a valid key characters.
13func isKeyChar(c byte) bool {
14 if isLowerCaseAlpha(c) || isDigit(c) {
15 return true
16 }
17
18 switch c {
19 case '_', '-', '.', '*':
20 return true
21 }
22
23 return false
24}
25
26// checkKey checks if the given value is a valid parameter key according to
27// https://httpwg.org/specs/rfc9651.html#param.

Callers 2

checkKeyFunction · 0.85
parseKeyFunction · 0.85

Calls 2

isLowerCaseAlphaFunction · 0.85
isDigitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…