Type Method

propertyForKey:inRequest:

Fetches the property associated with the specified key in the specified request.

Declaration

+ (id)propertyForKey:(NSString *)key inRequest:(NSURLRequest *)request;

Parameters

key

The key of the desired property.

request

The request whose properties are to be queried.

Return Value

The property associated with key, or nil if no property has been stored for key.

Discussion

Use this method to access protocol-specific information associated with URLRequest objects.

See Also

Getting and Setting Request Properties

+ setProperty:forKey:inRequest:

Sets the property associated with the specified key in the specified request.

+ removePropertyForKey:inRequest:

Removes the property associated with the specified key in the specified request.