setData:forKey: method

Adds the contents of an NSData object to the request, clearing any others with the same key.

Syntax

- ( void ) setData : ( NSData * ) data forKey : ( NSString * ) key