HTTPRequestHead
A representation of the request line and header fields of a HTTP request.
struct HTTPRequestHeadA representation of the request line and header fields of a HTTP request.
struct HTTPRequestHeadimport NIOHTTP1protocol CopyableA type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertibleA type with a customized textual representation.
protocol EquatableA type that can be compared for value equality.
protocol Escapableprotocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init(version: HTTPVersion, method: HTTPMethod, uri: String) Create a HTTPRequestHead
init(version: HTTPVersion, method: HTTPMethod, uri: String, headers: HTTPHeaders) Create a HTTPRequestHead
var description: String { get }var headers: HTTPHeadersThe header fields for this HTTP request.
var isKeepAlive: Bool { get }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 { get set }The HTTP method for this request.
var uri: String { get set }var version: HTTPVersion { get set }The version for this HTTP request.
static func == (lhs: HTTPRequestHead, rhs: HTTPRequestHead) -> Bool static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.