HTTPClient
public protocol HTTPClientProtocol HTTPClient
- 
                  
                  Send the given request. The request will be processed by the list of Interceptors.DeclarationSwift @available(*, deprecated, message: "Use async version instead") func sendPublisher(request: URLRequest, interceptors: [Interceptor], redirect handler: RedirectHandler?) -> AnyPublisher<HTTPResponse, HTTPClientError>ParametersrequestThe request to be (modified and) sent. interceptorsper request interceptors. handlerhandler that should be called in case of redirect. Return ValueAnyPublisherthat emits a response asHTTPResponse
- 
                  sendAsync(request:Asynchronousinterceptors: redirect: ) Send the given request. The request will be processed by the list of Interceptors.Note OnlyHTTPClientErrors are supposed to be thrown.DeclarationSwift func sendAsync( request: URLRequest, interceptors: [Interceptor], redirect handler: RedirectHandler? ) async throws -> HTTPResponseParametersrequestThe request to be (modified and) sent. interceptorsper request interceptors. handlerhandler that should be called in case of redirect. Return ValueThe response as HTTPResponse
- 
                  
                  List of all active interceptors of the HTTP client. DeclarationSwift var interceptors: [Interceptor] { get }
- 
                  sendPublisher(request:Extension methodinterceptors: ) Send the given request. The request will be processed by the list of Interceptors.DeclarationSwift @available(*, deprecated, message: "Use async version instead") public func sendPublisher(request: URLRequest, interceptors: [Interceptor]) -> AnyPublisher<HTTPResponse, HTTPClientError>ParametersrequestThe request to be (modified and) sent. interceptorsper request interceptors. Return ValueAnyPublisherthat emits a response asHTTPResponse
- 
                  sendPublisher(request:Extension method) Send the given request. DeclarationSwift @available(*, deprecated, message: "Use async version instead") public func sendPublisher(request: URLRequest) -> AnyPublisher<HTTPResponse, HTTPClientError>ParametersrequestThe request to be (modified and) sent. Return ValueAnyPublisherthat emits a response asHTTPResponse
- 
                  sendAsync(request:Extension method, asynchronousinterceptors: ) Send the given request. The request will be processed by the list of Interceptors.Note OnlyHTTPClientErrors are supposed to be thrown.DeclarationSwift public func sendAsync(request: URLRequest, interceptors: [Interceptor]) async throws -> HTTPResponseParametersrequestThe request to be (modified and) sent. interceptorsper request interceptors. Return ValueThe response as HTTPResponse
- 
                  sendAsync(request:Extension method, asynchronous) Send the given request. The request will be processed by the list of Interceptors.Note OnlyHTTPClientErrors are supposed to be thrown.DeclarationSwift public func sendAsync(request: URLRequest) async throws -> HTTPResponseParametersrequestThe request to be (modified and) sent. Return ValueThe response as HTTPResponse
 View on GitHub
            View on GitHub
           HTTPClient Protocol Reference
      HTTPClient Protocol Reference