init(status:headerFields:)

Create an HTTP response with a status and header fields.

HTTPResponse.swift:198
init(status: Status, headerFields: HTTPFields = [:])

Parameters

status

The status code and an optional reason phrase.

headerFields

The response header fields.