Instance Methodasync-http-client 1.25.2AsyncHTTPClient
didReceiveError(task:_:)
HTTPHandler.swift:585func didReceiveError(task: HTTPClient.Task<Response>, _ error: Error)
func didReceiveError(task: HTTPClient.Task<Response>, _ error: Error)
s15AsyncHTTPClient19ResponseAccumulatorC15didReceiveError4task_yAA0B0C4TaskCy_AG0C0VG_s0G0_ptF
What are these?DZIE
import AsyncHTTPClient
This package provides simple HTTP Client library built on top of SwiftNIO.
final class ResponseAccumulator
The default HTTPClientResponseDelegate
.
class HTTPClient
HTTPClient class provides API for request execution.
final class Task<Response>
Response execution context.
typealias Response = HTTPClient.Response
protocol Error : Sendable
A type representing an error value that can be thrown.
convenience init(request: HTTPClient.Request)
init(request: HTTPClient.Request, maxBodySize: Int)
let maxBodySize: Int
Maximum size in bytes of the HTTP response body that ResponseAccumulator
will accept until it will abort the request and throw an ResponseTooBigError
.
func didFinishRequest(task: HTTPClient.Task<Response>) throws -> Response
func didReceiveBodyPart(task: HTTPClient.Task<Response>, _ part: ByteBuffer) -> EventLoopFuture<Void>
func didReceiveHead(task: HTTPClient.Task<Response>, _ head: HTTPResponseHead) -> EventLoopFuture<Void>
struct ResponseTooBigError