Structure
ServerConfiguration.HTTP3
Configuration for HTTP/3.
struct HTTP3
Overview
HTTP/3 requires TLS. If a http3(config:) version is added to httpVersions without also setting a tlsConfiguration, the server throws an error when it starts (rather than serving over plaintext), so callers can catch it and decide how to handle it.
Topics
Structures
struct ConnectionSettingsHTTP/3 connection settings sent to the peer during connection establishment.struct QUICConfigurationQUIC transport configuration for an HTTP/3 server.
Initializers
init(preferHuffmanEncoding: Bool, quicConfiguration: QUICConfiguration, connectionSettings: ConnectionSettings)Creates an HTTP/3 configuration.
Instance Properties
var connectionSettings: ConnectionSettingsHTTP/3 connection settings exchanged with the client during connection establishment.var preferHuffmanEncoding: BoolIf true, Huffman encoding will be used where applicable, e.g. for header field sections.var quicConfiguration: QUICConfigurationQUIC transport configuration.
Type Properties
static var defaults: `Self`The default HTTP/3 configuration.
Relationships
Conforms To
Swift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype