Instance Propertyswift-nio 2.72.0NIOHTTP1
encoderConfiguration
The configuration for the HTTPResponseEncoder
.
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
var encoderConfiguration: HTTPResponseEncoder.Configuration
Other members in extension
Type members
init(upgradeConfiguration: NIOTypedHTTPServerUpgradeConfiguration<UpgradeResult>
) Initializes a new
NIOUpgradableHTTPServerPipelineConfiguration
with default values.
Instance members
var enableErrorHandling: Bool
Whether to provide assistance handling protocol errors (e.g. failure to parse the HTTP request) by sending 400 errors. Defaults to
true
.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 upgradeConfiguration: NIOTypedHTTPServerUpgradeConfiguration<UpgradeResult>
The configuration for the
NIOTypedHTTPServerUpgradeHandler
.