Concepts
Response
The response helper API (`ctx.res`) and response schema typing for fast JSON serialization.
Response
Use ctx.res to send responses directly, or return a value from your route and let Legonode send it.
ctx.res API
ctx.res.status(code): sets the HTTP status and returns a chain with:.json(data).send(body).text(body).html(body)
ctx.res.setHeader(name, value): set response headersctx.res.stream(readable): stream a readable response bodyctx.res.redirect(url, status?): redirectctx.res.sent:trueif the response was already sent (so further writes are no-ops)