Structureswift-nio 2.81.0NIOHTTP1
HTTPRequestHead
A representation of the request line and header fields of a HTTP request.
struct HTTPRequestHead
A representation of the request line and header fields of a HTTP request.
struct HTTPRequestHead
import NIOHTTP1
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Sendable
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: HTTPHeaders
The 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.
import NIOHTTPTypesHTTP1
init(_ newRequest: HTTPRequest) throws