RequestAdapter

public protocol RequestAdapter

A type that can inspect and optionally adapt a URLRequest in some manner if necessary.

  • Inspects and adapts the specified URLRequest in some manner if necessary and returns the result.

    Throws

    An Error if the adaptation encounters an error.

    Declaration

    Swift

    func adapt(_ urlRequest: URLRequest) throws -> URLRequest

    Parameters

    urlRequest

    The URL request to adapt.

    Return Value

    The adapted URLRequest.