Instance Property


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


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


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

See Also

Accessing Header Fields

func addValue(String, forHTTPHeaderField: String)

Adds a value to the header field.

func setValue(String?, forHTTPHeaderField: String)

Sets a value for the header field.