init(status:headerFields:)
Create an HTTP response with a status and header fields.
init(status: Status, headerFields: HTTPFields = [:])
Parameters
- status
The status code and an optional reason phrase.
- headerFields
The response header fields.
Create an HTTP response with a status and header fields.
init(status: Status, headerFields: HTTPFields = [:])
The status code and an optional reason phrase.
The response header fields.