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

func addValue(String, forHTTPHeaderField: String)

Adds a value to the header field.

func setValue(String?, forHTTPHeaderField: String)

Sets a value for the header field.