Protocols

The following protocols are available globally.

Serialization

  • A type which can serialize incoming Data.

    See more

    Declaration

    Swift

    public protocol DataStreamSerializer
  • A type that can encode any Encodable type into a URLRequest.

    See more

    Declaration

    Swift

    public protocol ParameterEncoder
  • A type used to define how a set of parameters are applied to a URLRequest.

    See more

    Declaration

    Swift

    public protocol ParameterEncoding

Protocol Conformances

  • Protocol abstraction for Request‘s communication back to the SessionDelegate.

    See more

    Declaration

    Swift

    public protocol RequestDelegate : AnyObject
  • Types adopting the URLConvertible protocol can be used to construct URLs, which can then be used to construct URLRequests.

    See more

    Declaration

    Swift

    public protocol URLConvertible

Empty

  • Protocol representing an empty response. Use T.emptyValue() to get an instance.

    See more

    Declaration

    Swift

    public protocol EmptyResponse

DataDecoder Protocol

  • Any type which can decode Data into a Decodable type.

    See more

    Declaration

    Swift

    public protocol DataDecoder
  • A protocol describing the API used to evaluate server trusts.

    See more

    Declaration

    Swift

    public protocol ServerTrustEvaluating