Instance Methodswift-nio 2.72.0NIOHTTP1->NIOCore
configureUpgradableHTTPClientPipeline(configuration:)
Configure a ChannelPipeline
for use as an HTTP client.
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
func configureUpgradableHTTPClientPipeline<UpgradeResult>(configuration: NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult>) -> EventLoopFuture<EventLoopFuture<UpgradeResult>> where UpgradeResult : Sendable
Parameters
- configuration
The HTTP pipeline’s configuration.
Returns
An EventLoopFuture
that will fire when the pipeline is configured. The future contains an EventLoopFuture
that is fired once the pipeline has been upgraded or not and contains the UpgradeResult
.
Other members in extension
Instance members
func addHTTPClientHandlers(position: Position, leftOverBytesStrategy: RemoveAfterUpgradeStrategy
) -> EventLoopFuture<Void> Configure a
ChannelPipeline
for use as a HTTP client.func addHTTPClientHandlers(position: Position, leftOverBytesStrategy: RemoveAfterUpgradeStrategy, enableOutboundHeaderValidation: Bool, encoderConfiguration: HTTPRequestEncoder.Configuration, withClientUpgrade: NIOHTTPClientUpgradeConfiguration?
) -> EventLoopFuture<Void> Configure a
ChannelPipeline
for use as a HTTP client.func addHTTPClientHandlers(position: Position, leftOverBytesStrategy: RemoveAfterUpgradeStrategy, enableOutboundHeaderValidation: Bool, withClientUpgrade: NIOHTTPClientUpgradeConfiguration?
) -> EventLoopFuture<Void> Configure a
ChannelPipeline
for use as a HTTP client.func addHTTPClientHandlers(position: Position, leftOverBytesStrategy: RemoveAfterUpgradeStrategy, withClientUpgrade: NIOHTTPClientUpgradeConfiguration?
) -> EventLoopFuture<Void> Configure a
ChannelPipeline
for use as a HTTP client with a client upgrader configuration.func configureHTTPServerPipeline(position: ChannelPipeline.Position, withPipeliningAssistance: Bool, withServerUpgrade: NIOHTTPServerUpgradeConfiguration?, withErrorHandling: Bool
) -> EventLoopFuture<Void> Configure a
ChannelPipeline
for use as a HTTP server.func configureHTTPServerPipeline(position: ChannelPipeline.Position, withPipeliningAssistance: Bool, withServerUpgrade: NIOHTTPServerUpgradeConfiguration?, withErrorHandling: Bool, withOutboundHeaderValidation: Bool
) -> EventLoopFuture<Void> Configure a
ChannelPipeline
for use as a HTTP server.func configureHTTPServerPipeline(position: ChannelPipeline.Position, withPipeliningAssistance: Bool, withServerUpgrade: NIOHTTPServerUpgradeConfiguration?, withErrorHandling: Bool, withOutboundHeaderValidation: Bool, withEncoderConfiguration: HTTPResponseEncoder.Configuration
) -> EventLoopFuture<Void> Configure a
ChannelPipeline
for use as a HTTP server.func configureUpgradableHTTPServerPipeline<UpgradeResult>(configuration: NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult>
) -> EventLoopFuture<EventLoopFuture<UpgradeResult>> Configure a
ChannelPipeline
for use as an HTTP server.