Chain
public protocol Chain
Handles the chaining of Interceptors
.
-
The request that the chain hold at the moment
Declaration
Swift
var request: URLRequest { get }
-
Launch the chain processing of the given input.
Declaration
Swift
func proceed(request: URLRequest) -> AnyPublisher<HTTPResponse, HTTPClientError>
Parameters
request
the
URLRequest
to proceedReturn Value
AnyPublisher
that emits a response asHTTPClient.Response