RequestDelegate

public protocol RequestDelegate

Represents a RequestDelegate that is associated with Requestable.

  • prepare(_:requestable:) Default implementation

    Called to modify a request before sending.

    Default Implementation

    No-op

    Declaration

    Swift

    func prepare(_ request: URLRequest, requestable: AConfigurable) -> URLRequest
  • didSend(_:requestable:) Default implementation

    Called when the request is sent over the network.

    Default Implementation

    No-op

    Declaration

    Swift

    func didSend(_ request: Request, requestable: AConfigurable)