Net.HTTP.H1.Classes
The byte classes of RFC 9110 and RFC 9112 as 256-entry tables, and the scan loop every part of the HTTP/1 codec reads them with. A table is an array indexed by the byte, so a class test is one load.
Each table is exactly its rule's class and nothing looser: ows is SP and
HTAB only, and no class but ows and fieldChar holds any control byte.
tchar, RFC 9110 §5.6.2.
The bytes a request target may hold: visible ASCII, except "#", since a fragment is never sent. RFC 3986 allows fewer, but clients send "{", "}", "|" and the like unencoded, and the form checks after the grammar are what framing and routing depend on.
field-vchar, RFC 9110 §5.5: VCHAR or obs-text. Never a control byte, so never CR, LF or NUL.
A byte of field-value or of the whitespace beside it.
reason-phrase, RFC 9112 §4: HTAB, SP, VCHAR and obs-text.
qdtext, RFC 9110 §5.6.4, which a chunk extension's quoted value holds.
OWS, RFC 9110 §5.6.3: SP and HTAB, nothing else.
RFC 3986 §3.1: the bytes after a scheme's first letter.
RFC 3986 §3.2.2: reg-name, unreserved / pct-encoded / sub-delims.
The bytes inside an IP literal's brackets.
Returns the first index from p before to whose byte is not in table,
or to.
Returns whether s[from..to) is want, where want is lowercase ASCII
and the bytes may be in either case.
Returns the value of the hex digit b, which hexDigit holds.
Returns s[from..to), which is ASCII, as a string.
Returns s[from..to), which is ASCII, as a lowercase string.