class HonoContext
Constructors
🔗
HonoContext()
Properties
🔗
_exCtx: FetchEventLike | ExecutionContext | undefined
🔗
_h: Headers | undefined
🔗
_init: boolean
🔗
_pH: Record<string, string> | undefined
🔗
_renderer: Renderer
🔗
_res: Response | undefined
🔗
_status: StatusCode
🔗
body: BodyRespond
🔗
cookie: (name: string, value: string, opt?: CookieOptions) => void
🔗
error: Error | undefined
🔗
res: Response | undefined
🔗
event: FetchEventLike
🔗
executionCtx: ExecutionContext
🔗
finalized: boolean
🔗
header: (name: string, value: string | undefined, options?: { append?: boolean; }) => void
🔗
html: HTMLRespond
🔗
json: JSONRespond
🔗
jsonT: JSONTRespond
🔗
newResponse: NewResponse
🔗
notFound: () => Response | Promise<Response>
🔗
redirect: (location: string, status?: StatusCode) => Response
🔗
render: Renderer
🔗
req: HonoRequest<P, I["out"]>
🔗
res: Response
🔗
runtime: Runtime
🔗
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