mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-06-02 07:37:34 +00:00
Add HTTP1Connection (#400)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user