Skip to content

v0.6.0 — request helpers

Choose a tag to compare

@tshafer tshafer released this 10 Jul 18:53
· 163 commits to main since this release

Terse handlers. json(), param(), query(), body(), text(), html(), redirect(), header(), request(), ctx() reach the current request without threading the context — write json({ id: param("id") }) instead of c.json({ id: c.req.param("id") }). Backed by async-context storage enabled per request. Taking c explicitly still works. See docs/routing.md.