configureUpgradableHTTPServerPipeline(configuration:)

Configure a ChannelPipeline for use as an HTTP server.

HTTPTypedPipelineSetup.swift:101
iOS
16+
macOS
13+
tvOS
16+
watchOS
9+
func configureUpgradableHTTPServerPipeline<UpgradeResult>(configuration: NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult>) throws -> EventLoopFuture<UpgradeResult> where UpgradeResult : Sendable

Parameters

configuration

The HTTP pipeline’s configuration.

Returns

An EventLoopFuture that is fired once the pipeline has been upgraded or not and contains the UpgradeResult.