MCPcopy Create free account
hub / github.com/denoland/std / isTchar

Function isTchar

http/unstable_structured_fields.ts:516–519  ·  view source on GitHub ↗

RFC 9110 tchar: token characters

(c: string)

Source from the content-addressed store, hash-verified

514
515/** RFC 9110 tchar: token characters */
516function isTchar(c: string): boolean {
517 const code = c.charCodeAt(0);
518 return code < 128 && TCHAR_LOOKUP[code]!;
519}
520
521/** Check if at end of input */
522function isEof(state: ParserState): boolean {

Callers 2

parseTokenFunction · 0.85
serializeTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected