didReceiveError(task:_:)
Default implementation of didReceiveError(task:_:)
.
func didReceiveError(task: HTTPClient.Task<Response>, _: Error)
By default, this does nothing.
Default implementation of didReceiveError(task:_:)
.
func didReceiveError(task: HTTPClient.Task<Response>, _: Error)
s15AsyncHTTPClient0B16ResponseDelegatePAAE15didReceiveError4task_yAA0B0C4TaskCy_0C0QzG_s0G0_ptF
What are these?98XYQ
By default, this does nothing.
import AsyncHTTPClient
This package provides simple HTTP Client library built on top of SwiftNIO.
protocol HTTPClientResponseDelegate : AnyObject
HTTPClientResponseDelegate
allows an implementation to receive notifications about request processing and to control how response parts are processed.
func didReceiveError(task: HTTPClient.Task<Response>, _ error: Error)
Called when error was thrown during request execution. Will be called zero or one time only. Request processing will be stopped after that.
class HTTPClient
HTTPClient class provides API for request execution.
final class Task<Response>
Response execution context.
associatedtype Response
protocol Error : Sendable
A type representing an error value that can be thrown.
func didReceiveBodyPart(task: HTTPClient.Task<Response>, _: ByteBuffer) -> EventLoopFuture<Void>
Default implementation of didReceiveBodyPart(task:_:)
.
func didReceiveHead(task: HTTPClient.Task<Response>, _: HTTPResponseHead) -> EventLoopFuture<Void>
Default implementation of didReceiveHead(task:_:)
.
func didSendRequest(task: HTTPClient.Task<Response>)
Default implementation of didSendRequest(task:)
.
func didSendRequestHead(task: HTTPClient.Task<Response>, _ head: HTTPRequestHead)
Default implementation of didSendRequest(task:)
.
func didSendRequestPart(task: HTTPClient.Task<Response>, _ part: IOData)
Default implementation of didSendRequestPart(task:_:)
.