SYNOPSIS
Respond with json
, html
, text
, or redirect
. Extend headers easily.
BUILD STATUS
USAGE
const Response = const http = http
response
responsetext418 'Tea Time!'
ABSOLUTE REDIRECTS
Defaults to 302
.
responseresponse
RELATIVE REDIRECTS
responseresponse
EXTEND HEADERS
Extend the headers for each request with the headers()
method.
responseheaders 'content-type': 'application/x-www-form-urlencoded' response