Ends the response without further data.
Redirects to the given URL.
Sends the response body (string, Buffer, object, …) and ends the response.
Optionalbody: unknownSets a response header (Express alias of setHeader, chainable).
Optionalvalue: stringSets a response header (chainable).
Minimal Express
Responsesurface available to custom request handlers (a subset of Express'sResponse). Write the HTTP response through this object, e.g.api.res.status(200).json({ ok: true }).