value(forHTTPHeaderField:)
Retrieves a header value.
Declaration
func value(forHTTPHeaderField field: String) -> String?Parameters
- field:
The header field name to use for the lookup (case-insensitive).
Return Value
The value associated with the header field field, or nil if there is no corresponding header field.
Discussion
Note that, in keeping with the HTTP RFC, HTTP header field names are case-insensitive.