Instance Method

valueForHTTPHeaderField:

Returns the value of the specified HTTP header field.

Declaration

- (NSString *)valueForHTTPHeaderField:(NSString *)field;

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.

See Also

Getting Header Fields

allHTTPHeaderFields

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