NIOUpgradableHTTPServerPipelineConfiguration
Configuration for an upgradable HTTP pipeline.
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
struct NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult> where UpgradeResult : SendableConfiguration for an upgradable HTTP pipeline.
struct NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult> where UpgradeResult : Sendables8NIOHTTP144NIOUpgradableHTTPServerPipelineConfigurationV What are these?4DO1Limport NIOHTTP1protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init(upgradeConfiguration: NIOTypedHTTPServerUpgradeConfiguration<UpgradeResult>) Initializes a new NIOUpgradableHTTPServerPipelineConfiguration with default values.
var enableErrorHandling: BoolWhether to provide assistance handling protocol errors (e.g. failure to parse the HTTP request) by sending 400 errors. Defaults to true.
var enablePipelining: BoolWhether to provide assistance handling HTTP clients that pipeline their requests. Defaults to true. If false, users will need to handle clients that pipeline themselves.
var enableResponseHeaderValidation: BoolWhether to validate outbound response headers to confirm that they are spec compliant. Defaults to true.
var encoderConfiguration: HTTPResponseEncoder.ConfigurationThe configuration for the HTTPResponseEncoder.
var upgradeConfiguration: NIOTypedHTTPServerUpgradeConfiguration<UpgradeResult>The configuration for the NIOTypedHTTPServerUpgradeHandler.