AWSHTTPClient
public protocol AWSHTTPClient
Protocol defining requirements for a HTTPClient
-
Function that streamed response chunks are sent ot
Declaration
Swift
typealias ResponseStream = (ByteBuffer, EventLoop) -> EventLoopFuture<Void>
-
Execute HTTP request and return a future holding a HTTP Response
Declaration
Swift
func execute(request: AWSHTTPRequest, timeout: TimeAmount, on eventLoop: EventLoop, logger: Logger) -> EventLoopFuture<AWSHTTPResponse>
-
execute(request:
Default implementationtimeout: on: logger: stream: ) Execute an HTTP request with a streamed response
Default Implementation
Execute an HTTP request with a streamed response
Declaration
Swift
func execute(request: AWSHTTPRequest, timeout: TimeAmount, on eventLoop: EventLoop, logger: Logger, stream: @escaping ResponseStream) -> EventLoopFuture<AWSHTTPResponse>
-
This should be called before an HTTP Client can be de-initialised
-
This should be called before an HTTP Client can be de-initialised
Declaration
Swift
func shutdown(queue: DispatchQueue, _ callback: @escaping (Error?) -> Void)
-
Event loop group used by client
Declaration
Swift
var eventLoopGroup: EventLoopGroup { get }