Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Initializer

init(maxFrameSize:targetWindowSize:maxConcurrentStreams:gracefulShutdown:)

Creates a new HTTP/2 configuration.
init(maxFrameSize: Int = Self.defaultMaxFrameSize, targetWindowSize: Int = Self.defaultTargetWindowSize, maxConcurrentStreams: Int = Self.defaultMaxConcurrentStreams, gracefulShutdown: GracefulShutdownConfiguration = .init())

Parameters

maxFrameSize

The maximum frame size to be used in a connection. Defaults to 2^14.

targetWindowSize

The target window size for a connection, also used as the initial window size. Defaults to 2^16 - 1.

maxConcurrentStreams

The maximum number of concurrent streams permitted. Defaults to 100.

gracefulShutdown

The graceful shutdown configuration.