Headers
Headers are accessible under ctx.req.headers
.
Make sure to use the lowercase key name (Authorization
becomes authorization
):
app.get("/", (ctx) => {
return new TextBody(ctx.req.headers.host);
});
Headers are accessible under ctx.req.headers
.
Make sure to use the lowercase key name (Authorization
becomes authorization
):