← Back to index
class HonoContext

Constructors

🔗
HonoContext()

Type Parameters

🔗
E extends Env = any
🔗
P extends string = any
🔗
I extends Input = { }

Properties

🔗
_exCtx: FetchEventLike | ExecutionContext | undefined
🔗
_h: Headers | undefined
🔗
_init: boolean
🔗
_pH: Record<string, string> | undefined
🔗
_renderer: Renderer
🔗
_res: Response | undefined
🔗
_status: StatusCode
🔗
_var: E["Variables"]
🔗
body: BodyRespond
🔗
env: E["Bindings"]
🔗
error: Error | undefined
🔗
res: Response | undefined
🔗
event: FetchEventLike
🔗
executionCtx: ExecutionContext
🔗
finalized: boolean
🔗
get: Get<E>
🔗
header: (name: string, value: string | undefined, options?: { append?: boolean; }) => void
🔗
html: HTMLRespond
🔗
json: JSONRespond
🔗
jsonT: JSONTRespond
🔗
newResponse: NewResponse
🔗
notFound: () => Response | Promise<Response>
🔗
notFoundHandler: NotFoundHandler<E>
🔗
redirect: (location: string, status?: StatusCode) => Response
🔗
render: Renderer
🔗
req: HonoRequest<P, I["out"]>
🔗
res: Response
🔗
runtime: Runtime
🔗
set: Set<E>
🔗
setRenderer: (renderer: Renderer) => unknown
🔗
status: (status: StatusCode) => void
🔗
stream: (cb: (stream: StreamingApi) => Promise<void>, arg?: StatusCode | ResponseInit, headers?: HeaderRecord) => Response
🔗
streamText: (cb: (stream: StreamingApi) => Promise<void>, arg?: StatusCode | ResponseInit, headers?: HeaderRecord) => Response
🔗
text: TextRespond
🔗
var: Readonly<E["Variables"] & ContextVariableMap>