Type Method

setProperty:forKey:inRequest:

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

Declaration

+ (void)setProperty:(id)value forKey:(NSString *)key inRequest:(NSMutableURLRequest *)request;

Parameters

value

The value to set for the specified property.

key

The key for the specified property.

request

The request for which to create the property.

Discussion

Use this method to provide an interface for protocol implementors to customize protocol-specific information associated with NSMutableURLRequest objects.

See Also

Getting and Setting Request Properties

+ propertyForKey:inRequest:

Fetches 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.