HTTPClient
public protocol HTTPClientAn HTTPClient is responsible sending requests.
- 
                  
                  Performs an HTTP request. The returned must fail if and only if no response from the remote could be received. The implementation is free to chose how to handle 3xx statuses. DeclarationSwift func perform(request: HTTPRequest) -> Promise<HTTPDataResponse>ParametersrequestThe request to send. Return ValueA Promise to the response. 
- 
                  
                  Performs an HTTP request by streaming its body present in the fileUrlof the request. The implementation is responsible for calling the progress handler of the promise. The returned must fail if and only if no response from the remote could be received. The implementation is free to chose how to handle 3xx statuses.DeclarationSwift func upload(request: HTTPRequest) -> ProgressablePromise<HTTPDataResponse>ParametersrequestThe request to send. Return ValueA Promise to the response. 
 HTTPClient Protocol Reference
        HTTPClient Protocol Reference