Create an HTTP response object — httpResponse
v1.8.1|Source:
R/middleware.R
Description
Create an HTTP response object
Arguments
- status
HTTP status code for the response.
- content_type
The value for the
Content-Type
header.- content
The body of the response, given as a single-element character vector (will be encoded as UTF-8) or a raw vector.
- headers
A named list of additional headers to include. Do not include
Content-Length
(as it is automatically calculated) orContent-Type
(thecontent_type
argument is used instead).