[HTTP1Connection] Option to ignore unclean ssl shutdown errors (#432)

- a new `RequestOptions` struct was created, that can be used to set request specific options. It is required by the `HTTPExecutableRequest`
- Added support for `ignoreUncleanSSLShutdown` in the `HTTPRequestStateMachine` and the `HTTP1ConnectionStateMachine`. In http/2 `ignoreUncleanSSLShutdown` is always off.
This commit is contained in:
Fabian Fett
2021-09-21 10:04:17 +02:00
committed by GitHub
parent b25943adad
commit 64fbfdaeda
20 changed files with 219 additions and 89 deletions
@@ -219,8 +219,8 @@ protocol HTTPExecutableRequest: AnyObject {
/// ``requestHeadSent``.
var requestFramingMetadata: RequestFramingMetadata { get }
/// The maximal `TimeAmount` that is allowed to pass between `channelRead`s from the Channel.
var idleReadTimeout: TimeAmount? { get }
/// Request specific configurations
var requestOptions: RequestOptions { get }
/// Will be called by the ChannelHandler to indicate that the request is going to be sent.
///