ParameterEncoding

public protocol ParameterEncoding

Protocol that all URLRequest paramter encoders conform to

  • Encode a request with parameters

    • Parameters:
      • request: The request to modify
      • parameters: The parameters to appy to the request

    Declaration

    Swift

    func encode(_ request: URLRequest, parameters: Parameters) throws -> URLRequest

    Parameters

    request

    The request to modify

    parameters

    The parameters to appy to the request