f
getHeaderName(word: string): string | null
The one header a headers.etag or headers[etag] asks for, or null where that is not what
was said.
f
getHeaderType(word: string): "sent" | "received" | null
The side a headers.sent or header['received'] names, or null where it names neither.
f
parseRequestPart(asked: string): { kind: RequestPart; target: string; name?: string; }
The part a trailing word or two names, and whatever came before it.
f
printRequestReferenceNotFound(): void
repl: ReplContext,
reference: RequestReference
Said in terms of HOW it was looked for: an id, a position and a URL each miss differently.
v
command: ReplCommand
.request — what a request actually was, after the fact.
Usage
import * as mod from "lib/commands/repl/commands/request.ts";