Structure
ServerConfiguration.HTTP2
HTTP/2 specific configuration.
struct HTTP2
Overview
HTTP/2 is only negotiated over TLS (via ALPN). If an http2(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 GracefulShutdownConfigurationConfiguration options for HTTP/2 graceful shutdown behavior.
Initializers
init(maxFrameSize: Int, targetWindowSize: Int, maxConcurrentStreams: Int, gracefulShutdown: GracefulShutdownConfiguration)Creates a new HTTP/2 configuration.
Instance Properties
var gracefulShutdown: GracefulShutdownConfigurationThe graceful shutdown configuration.var maxConcurrentStreams: IntThe maximum number of concurrent streams permitted on the connection.var maxFrameSize: IntThe maximum frame size to be used in an HTTP/2 connection.var targetWindowSize: IntThe target window size for the connection.
Type Properties
static var defaults: `Self`The default HTTP/2 configuration.
Relationships
Conforms To
Swift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype