Add HTTP1Connection (#400)

This commit is contained in:
Fabian Fett
2021-07-13 13:32:18 +02:00
committed by GitHub
parent 79db46a757
commit e967f9a099
13 changed files with 1629 additions and 4 deletions
@@ -120,7 +120,7 @@ import NIOHTTP1
/// - The executor may have received an error in thread A that it passes along to the request.
/// After having passed on the error, the executor considers the request done and releases
/// the request's reference.
/// - The request may issue a call to `writeRequestBodyPart(_: IOData, task: HTTPExecutingRequest)`
/// - The request may issue a call to `writeRequestBodyPart(_: IOData, task: HTTPExecutableRequest)`
/// on thread B in the same moment the request error above occurred. For this reason it may
/// happen that the executor receives, the invocation of `writeRequestBodyPart` after it has
/// failed the request.
@@ -187,6 +187,9 @@ protocol HTTPRequestExecutor {
}
protocol HTTPExecutableRequest: AnyObject {
/// The request's logger
var logger: Logger { get }
/// The request's head.
///
/// The HTTP request head, that shall be sent. The HTTPRequestExecutor **will not** run any validation