Instance Property

allHTTPHeaderFields

A dictionary containing all of the HTTP header fields for a request.

Declaration

var allHTTPHeaderFields: [String : String]? { get set }

Discussion

Certain header fields are reserved (see Reserved HTTP Headers). Do not use this property to set such headers.

See Also

Accessing Header Fields