AlamofireClient
public class AlamofireClient : HTTPClient
An HTTPClient
that uses Alamofire
for sending requests.
-
Errors thrown by
See moreAlamofireClient
Declaration
Swift
public enum Error : Swift.Error
-
Creates a new
AlamofireClient
.Declaration
Swift
public init(sessionManager: Session = Session.default)
Parameters
session
The Alamofire session to use for sending requests.
-
Declaration
Swift
public func perform(request: HTTPRequest) -> Promise<HTTPDataResponse>
-
Declaration
Swift
public func upload(request: HTTPRequest) -> ProgressablePromise<HTTPDataResponse>