LibraryActive

Hono Context API

Per-request Context object for the Hono web framework, providing request/response access and helpers.

Open source page ↗

Product features

Product features

Developer Experience ​

env

Accesses Cloudflare Workers bindings via c.env.BINDING_KEY.

executionCtx / event

Accesses Cloudflare Workers ExecutionContext and FetchEvent.

Features ​

header()

Sets HTTP headers for the response.

Hono ​

Hono in 1 minute ​

Lightweight ​

Middleware & Helpers ​

Multiple routers ​

Quick Start ​

render() / setRenderer()

Sets a layout via middleware and renders responses within it.

req

Instance of HonoRequest for the current request.

set() / get() / var

Get and set arbitrary key-value pairs scoped to the current request.

status()

Sets the HTTP status code; default is 200.

text() / json() / html()

Renders text/plain, application/json, or text/html responses.

Ultrafast ​

Use-cases ​

Web Standards ​

Who is using Hono? ​