value(forHTTPHeaderField:)
Returns the value of the specified HTTP header field.
Declaration
func value(forHTTPHeaderField field: String) -> String?Parameters
- field:
The name of the header field whose value is to be returned. In keeping with the HTTP RFC, HTTP header field names are case-insensitive.
Return Value
The value associated with the header field field, or nil if there is no corresponding header field.