Header
public enum Header : String
Type-safe HTTP header keys.
-
HostDeclaration
Swift
case host = "Host" -
Content-LengthDeclaration
Swift
case contentLength = "Content-Length" -
Content-TypeDeclaration
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"
View on GitHub
Header Enumeration Reference