ResponseTooBigError
HTTPHandler.swift:477struct ResponseTooBigError
struct ResponseTooBigError
s15AsyncHTTPClient19ResponseAccumulatorC0C11TooBigErrorV
What are these?5R943
import AsyncHTTPClient
This package provides simple HTTP Client library built on top of SwiftNIO.
final class ResponseAccumulator
The default HTTPClientResponseDelegate
.
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 didReceiveError(task: HTTPClient.Task<Response>, _ error: Error)
func didReceiveHead(task: HTTPClient.Task<Response>, _ head: HTTPResponseHead) -> EventLoopFuture<Void>
typealias Response = HTTPClient.Response
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Sendable
init(maxBodySize: Int)
var description: String { get }
var maxBodySize: Int
var localizedDescription: String { get }
Retrieve the localized description for this error.