Instance Propertyswift-nio 2.72.0NIOHTTP1
enableErrorHandling
Whether to provide assistance handling protocol errors (e.g. failure to parse the HTTP request) by sending 400 errors. Defaults to true
.
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
var enableErrorHandling: Bool
Other members in extension
Type members
init(upgradeConfiguration: NIOTypedHTTPServerUpgradeConfiguration<UpgradeResult>
) Initializes a new
NIOUpgradableHTTPServerPipelineConfiguration
with default values.
Instance members
var enablePipelining: Bool
Whether to provide assistance handling HTTP clients that pipeline their requests. Defaults to
true
. Iffalse
, users will need to handle clients that pipeline themselves.var enableResponseHeaderValidation: Bool
Whether to validate outbound response headers to confirm that they are spec compliant. Defaults to
true
.var encoderConfiguration: HTTPResponseEncoder.Configuration
The configuration for the
HTTPResponseEncoder
.var upgradeConfiguration: NIOTypedHTTPServerUpgradeConfiguration<UpgradeResult>
The configuration for the
NIOTypedHTTPServerUpgradeHandler
.