Initializerasync-http-client 1.25.2AsyncHTTPClient
init(request:)
HTTPHandler.swift:501convenience init(request: HTTPClient.Request)
convenience init(request: HTTPClient.Request)
s15AsyncHTTPClient19ResponseAccumulatorC7requestAcA0B0C7RequestV_tcfc
What are these?8X0FL
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.
struct Request
Represents an HTTP 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 didReceiveError(task: HTTPClient.Task<Response>, _ error: Error)
func didReceiveHead(task: HTTPClient.Task<Response>, _ head: HTTPResponseHead) -> EventLoopFuture<Void>
struct ResponseTooBigError
typealias Response = HTTPClient.Response