Skip to content

v0.8.0 — request accessor

Choose a tag to compare

@tshafer tshafer released this 10 Jul 19:14
· 161 commits to main since this release

A flat request accessor for the current request/response:

`${request.method} ${request.path}${request.status} (${ms}ms)`

request.header("authorization");  request.param("id");
await request.json();  request.raw;

request.status is the response status (populated after await next() in middleware). Note: request is now this accessor object rather than a function — use request.raw for the underlying web Request. Docs + changelog updated.