Structureswift-nio 2.81.0NIOHTTP1
HTTPVersion
A structure representing a HTTP version.
struct HTTPVersion
A structure representing a HTTP version.
struct HTTPVersion
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(major: Int, minor: Int)
Create a HTTP version.
static let http0_9: HTTPVersion
HTTP/0.9 (not supported by SwiftNIO)
static let http1_0: HTTPVersion
HTTP/1.0
static let http1_1: HTTPVersion
HTTP/1.1
static let http2: HTTPVersion
HTTP/2
static let http3: HTTPVersion
HTTP/3
var description: String { get }
var major: Int { get set }
The major version number.
var minor: Int { get set }
The minor version number.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.