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 proceed

    Return Value

    AnyPublisher that emits a response as HTTPClient.Response