Enumeration
HTTPHeader
public enum HTTPHeader
An HTTP
header.
This is a collection of some commonly used headers
but any header can be created using .custom(name: String, value: String)
.
Relationships
Nested Types
HTTPHeader.ContentType
Values for the
Content-Type
HTTP
header.
Enumeration Cases
contentType
case contentType(: ContentType)
Content-Type
HTTP
header.
contentLength
case contentLength(: Int)
Content-Length
HTTP
header.
custom
case custom(name: String, value: String)
Custom HTTP
header name and value.
Properties
rawValue
var rawValue: (name: String, value: String)