Header

public enum Header

Defines headers as an enum. Defines the canonical set of headers. Custom headers can be encoded using the other case.

  • Bearer authorization, generally used with OAuth or token-based authentication.

    Declaration

    Swift

    case bearerAuth(String)
  • The etag header used for caching.

    Declaration

    Swift

    case eTag(String)
  • Allows the definition of a custom header.

    Declaration

    Swift

    case other(String, String)
  • Renders the header into a tuple of String values.

    Declaration

    Swift

    public var pair: (String, String)