Header

public enum Header : String

Type-safe HTTP header keys.

  • Host

    Declaration

    Swift

    case host = "Host"
  • Content-Length

    Declaration

    Swift

    case contentLength = "Content-Length"
  • Content-Type

    Declaration

    Swift

    case contentType = "Content-Type"
  • A header used to activating bad behaviour of a service provider. This should be used for demonstration purposes only.

    Warning

    Do not use this in production systems, as all requests will be logged, if this header is set.

    Declaration

    Swift

    case badProvider = "X-AppPETs-BadProvider"