Protocols
The following protocols are available globally.
-
An
See moreHTTPClientis responsible sending requests.Declaration
Swift
public protocol HTTPClient -
Represents an object that is able to intercept requests and responses.
Sample implementation that does nothing:
See moreclass EmptyInterceptor: RestingInterceptor { func intercept(request: HTTPRequest, execution: Execution) -> ProgressablePromise<HTTPDataResponse> { return execution() } }Declaration
Swift
public protocol RestingInterceptor -
An interface to provide globally available headers to
See moreRestingRequestConverter.Declaration
Swift
public protocol HeaderProvider -
An interface to provide globally available path variables to
See moreRestingRequestConverter.Declaration
Swift
public protocol PathVariableProvider -
A protocol that converts
See moreRestingRequests toHTTPRequest.Declaration
Swift
public protocol RequestConverter -
Represents a response from an HTTP request.
See moreDeclaration
Swift
public protocol HTTPResponseType
Protocols Reference