import { type Context } from "https://deno.land/x/hono@v2.1.0/context.ts";
Type Parameters
optional
E extends Partial<Environment> = EnvironmentProperties
req: Request<RequestParamKeyType>
status: (status: StatusCode) => void
set: { <Key extends keyof ContextVariableMap>(key: Key, value: ContextVariableMap[Key]): void; <Key extends keyof E["Variables"]>(key: Key, value: E["Variables"][Key]): void; (key: string, value: any): void; }
get: { <Key extends keyof ContextVariableMap>(key: Key): ContextVariableMap[Key]; <Key extends keyof E["Variables"]>(key: Key): E["Variables"][Key]; <T = any>(key: string): T; }
newResponse: () => Response
body: () => Response
text: () => Response
json: <T>() => Response
html: () => Response
redirect: (location: string, status?: StatusCode) => Response