import { HonoContext } from "https://deno.land/x/hono@v2.2.3/context.ts";
Constructors
new
HonoContext(req: Request<RequestParamKeyType>,
env?: E["Bindings"] | undefined,
executionCtx?: FetchEvent | ExecutionContext | undefined,
notFoundHandler?: NotFoundHandler<E>,
Type Parameters
optional
E extends Partial<Environment> = Environmentoptional
D extends ValidatedData = ValidatedDataProperties
private
_res: Response | undefinedprivate
notFoundHandler: NotFoundHandler<E>_status: StatusCode
env: E["Bindings"]
req: Request<RequestParamKeyType, D>
res: Response
Methods
private
_finalizeHeaders(incomingHeaders: Headers): HeaderField[]cookie(): void
get<Key extends keyof ContextVariableMap>(key: Key): ContextVariableMap[Key]
get<T = any>(key: string): T
header(): void
name: string,
value: string,
options?: { append?: boolean; },
pretty(prettyJSON: boolean, space?: number): void
redirect(location: string, status?: StatusCode): Response
set<Key extends keyof ContextVariableMap>(key: Key, value: ContextVariableMap[Key]): void
set(key: string, value: any): void
status(status: StatusCode): void