import { Context } from "https://deno.land/x/xserver@5.3.2/src/mod.ts";
Constructors
new
Context(request: Request)Methods
alreadyReported(body?: Body, head?: Head): Promise<Response>
badGateway(body?: Body, head?: Head): Promise<Response>
badRequest(body?: Body, head?: Head): Promise<Response>
code(code: StatusCode): this
earlyHints(body?: Body, head?: Head): Promise<Response>
expectationFailed(body?: Body, head?: Head): Promise<Response>
failedDependency(body?: Body, head?: Head): Promise<Response>
gatewayTimeout(body?: Body, head?: Head): Promise<Response>
get(name: string): Record<string, any>
head(head: Head): this
httpVersionNotSupported(body?: Body, head?: Head): Promise<Response>
insufficientStorage(body?: Body, head?: Head): Promise<Response>
internalServerError(body?: Body, head?: Head): Promise<Response>
lengthRequired(body?: Body, head?: Head): Promise<Response>
loopDetected(body?: Body, head?: Head): Promise<Response>
message(message: string): this
methodNotAllowed(body?: Body, head?: Head): Promise<Response>
misdirectedRequest(body?: Body, head?: Head): Promise<Response>
movedPermanently(body?: Body, head?: Head): Promise<Response>
multipleChoices(body?: Body, head?: Head): Promise<Response>
multiStatus(body?: Body, head?: Head): Promise<Response>
networkAuthenticationRequired(body?: Body, head?: Head): Promise<Response>
nonAuthoritativeInfo(body?: Body, head?: Head): Promise<Response>
notAcceptable(body?: Body, head?: Head): Promise<Response>
notExtended(body?: Body, head?: Head): Promise<Response>
notImplemented(body?: Body, head?: Head): Promise<Response>
notModified(body?: Body, head?: Head): Promise<Response>
partialContent(body?: Body, head?: Head): Promise<Response>
paymentRequired(body?: Body, head?: Head): Promise<Response>
permanentRedirect(body?: Body, head?: Head): Promise<Response>
preconditionFailed(body?: Body, head?: Head): Promise<Response>
preconditionRequired(body?: Body, head?: Head): Promise<Response>
processing(body?: Body, head?: Head): Promise<Response>
proxyAuthRequired(body?: Body, head?: Head): Promise<Response>
requestedRangeNotSatisfiable(body?: Body, head?: Head): Promise<Response>
requestEntityTooLarge(body?: Body, head?: Head): Promise<Response>
requestHeaderFieldsTooLarge(body?: Body, head?: Head): Promise<Response>
requestTimeout(body?: Body, head?: Head): Promise<Response>
requestURITooLong(body?: Body, head?: Head): Promise<Response>
resetContent(body?: Body, head?: Head): Promise<Response>
set(name: string, value: unknown): void
switchingProtocols(body?: Body, head?: Head): Promise<Response>
temporaryRedirect(body?: Body, head?: Head): Promise<Response>
tooManyRequests(body?: Body, head?: Head): Promise<Response>
unauthorized(body?: Body, head?: Head): Promise<Response>
unprocessableEntity(body?: Body, head?: Head): Promise<Response>
unsupportedMediaType(body?: Body, head?: Head): Promise<Response>
upgradeRequired(body?: Body, head?: Head): Promise<Response>
variantAlsoNegotiates(body?: Body, head?: Head): Promise<Response>