Instance Propertyswift-nio 2.84.0NIOHTTP1
headers
The HTTP headers on this response.
var headers: HTTPHeaders
The HTTP headers on this response.
var headers: HTTPHeaders
s8NIOHTTP116HTTPResponseHeadV7headersAA11HTTPHeadersVvp
What are these?1R0D2
import NIOHTTP1
struct HTTPResponseHead
A representation of the status line and header fields of a HTTP response.
struct HTTPHeaders
A representation of a block of HTTP header fields.
init(version: HTTPVersion, status: HTTPResponseStatus, headers: HTTPHeaders = HTTPHeaders())
Create a HTTPResponseHead
var description: String { get }
var isKeepAlive: Bool { get }
Whether this HTTP response is a keep-alive request: that is, whether the connection should remain open after the request is complete.
var status: HTTPResponseStatus { get set }
The HTTP response status.
var version: HTTPVersion { get set }
The HTTP version that corresponds to this response.
static func == (lhs: HTTPResponseHead, rhs: HTTPResponseHead) -> Bool