Instance Methodasync-http-client 1.25.2AsyncHTTPClient
didReceiveBodyPart(task:_:)
HTTPHandler.swift:550func didReceiveBodyPart(task: HTTPClient.Task<Response>, _ part: ByteBuffer) -> EventLoopFuture<Void>
func didReceiveBodyPart(task: HTTPClient.Task<Response>, _ part: ByteBuffer) -> EventLoopFuture<Void>
s15AsyncHTTPClient19ResponseAccumulatorC18didReceiveBodyPart4task_7NIOCore15EventLoopFutureCyytGAA0B0C4TaskCy_AK0C0VG_AF10ByteBufferVtF
What are these?2VU9Z
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
struct ByteBuffer
ByteBuffer
stores contiguously allocated raw bytes. It is a random and sequential accessible sequence of zero or more bytes (octets).
final class EventLoopFuture<Value>
Holder for a result that will be provided later.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.
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 didReceiveError(task: HTTPClient.Task<Response>, _ error: Error)
func didReceiveHead(task: HTTPClient.Task<Response>, _ head: HTTPResponseHead) -> EventLoopFuture<Void>
struct ResponseTooBigError