Structure
ServerConfiguration.HTTPVersion
An HTTP protocol version the server can advertise and serve.
struct HTTPVersion
Overview
Use http1_1 and http2(config:) to build the set passed to httpVersions.
Topics
Operators
static func == (`Self`, `Self`) -> BoolEquality is by protocol version only: two values are equal when they represent the same HTTP version, ignoring any associated configuration.
Instance Methods
func hash(into: inout Hasher)Hashes by protocol version only, consistent with theEquatableconformance above.
Type Properties
static var http1_1: `Self`The HTTP/1.1 protocol version.
Type Methods
static func http2(config: HTTP2) -> ServerConfiguration.HTTPVersionThe HTTP/2 protocol version.
Relationships
Conforms To
Swift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype