import { HonoContext } from "https://deno.land/x/hono@v2.1.0/context.ts";
Constructors
new
HonoContext(req: Request,
env?: E["Bindings"] | undefined,
executionCtx?: FetchEvent | ExecutionContext | undefined,
notFoundHandler?: NotFoundHandler,
Type Parameters
optional
E extends Partial<Environment> = EnvironmentProperties
private
_res: Response | undefinedprivate
notFoundHandler: NotFoundHandler_status: StatusCode
env: Environment["Bindings"]
req: Request<RequestParamKeyType>
res: Response
Methods
cookie(): void
get<Key extends keyof ContextVariableMap>(key: Key): ContextVariableMap[Key]
get<T = any>(key: string): T
header(name: string, value: string): void
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