Structureswift-nio 2.72.0NIOHTTP1
NIOTypedHTTPClientUpgradeConfiguration
The upgrade configuration for the NIOTypedHTTPClientUpgradeHandler
.
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
struct NIOTypedHTTPClientUpgradeConfiguration<UpgradeResult> where UpgradeResult : Sendable
Citizens in NIOHTTP1
Type members
init(upgradeRequestHead: HTTPRequestHead, upgraders: [any NIOTypedHTTPClientProtocolUpgrader<UpgradeResult>], notUpgradingCompletionHandler: @escaping (Channel) -> EventLoopFuture<UpgradeResult>
)
Instance members
var notUpgradingCompletionHandler: (Channel) -> EventLoopFuture<UpgradeResult>
A closure that is run once it is determined that no protocol upgrade is happening. This can be used to configure handlers that expect HTTP.
var upgradeRequestHead: HTTPRequestHead
The initial request head that is sent out once the channel becomes active.
var upgraders: [any NIOTypedHTTPClientProtocolUpgrader<UpgradeResult>]
The array of potential upgraders.