import { Context } from "https://deno.land/x/hono@v2.5.5/mod.ts";
Constructors
new
Context(env?: E["Bindings"],
executionCtx?: FetchEvent | ExecutionContext | undefined,
notFoundHandler?: NotFoundHandler<E>,
Properties
private
_res: Response | undefinedprivate
notFoundHandler: NotFoundHandler<E>env: E["Bindings"]
res: Response
Methods
private
_finalizeHeaders(incomingHeaders: Headers): HeaderField[]cookie(): void
name: string,
value: string,
opt?: CookieOptions,
get<Key extends keyof ContextVariableMap>(key: Key): ContextVariableMap[Key]
get<T>(key: string): T
header(): void
name: string,
value: string,
options?: { append?: boolean; },
pretty(prettyJSON: boolean, space?: number): void
set<Key extends keyof ContextVariableMap>(key: Key, value: ContextVariableMap[Key]): void
set(key: string, value: unknown): void
status(status: StatusCode): void