HTTPClient
public final class HTTPClient
HTTP Client class providing API for sending HTTP requests
-
Request structure to send
Declaration
Swift
public struct Request -
Response structure received back
Declaration
Swift
public struct Response -
Errors returned from HTTPClient when parsing responses
See moreDeclaration
Swift
public enum HTTPError : Error -
Specifies how
See moreEventLoopGroupwill be created and establishes lifecycle ownership.Declaration
Swift
public enum EventLoopGroupProvider -
Initialise HTTPClient
Declaration
Swift
public init(eventLoopGroupProvider: EventLoopGroupProvider = .createNew) -
Shuts down the client and
EventLoopGroupif it was created by the client.Declaration
Swift
public func syncShutdown() throws
View on GitHub
HTTPClient Class Reference