isKeyChar checks if c is a valid key characters.
(c byte)
| 11 | |
| 12 | // isKeyChar checks if c is a valid key characters. |
| 13 | func 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. |
no test coverage detected
searching dependent graphs…