RequestDelegate

public protocol RequestDelegate

Represents a RequestDelegate that is associated with Requestable.

  • Called to modify a request before sending.

    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)
  • didComplete(_:requestable:) Default implementation

    Called when the request is completed.

    Default Implementation

    No-op

    Declaration

    Swift

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