Initializerswift-nio 2.72.0NIOHTTP1
init(version:method:uri:headers:)
Create a HTTPRequestHead
init(version: HTTPVersion, method: HTTPMethod, uri: String, headers: HTTPHeaders)
Parameters
Other members in extension
Type members
init(version: HTTPVersion, method: HTTPMethod, uri: String
) Create a
HTTPRequestHead
static func == (lhs: HTTPRequestHead, rhs: HTTPRequestHead
) -> Bool
Instance members
var description: String
var headers: HTTPHeaders
The header fields for this HTTP request.
var isKeepAlive: Bool
Whether this HTTP request is a keep-alive request: that is, whether the connection should remain open after the request is complete.
var method: HTTPMethod
The HTTP method for this request.
var uri: String
var version: HTTPVersion
The version for this HTTP request.