FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSMutableURLRequest(HTTPMethod) Category Reference

NSMutableURLRequest POST extension. More...

#import <NSURLRequest.h>

Instance Methods

(void) - setHTTPPostBody:
 Sets the request body of the receiver to the specified data from bodyDictionary and given encoding as url form format. More...
 
(void) - setHTTPPostBody:encoding:
 Sets the request body of the receiver to the specified data from bodyDictionary as url form format. More...
 

Detailed Description

NSMutableURLRequest POST extension.

Method Documentation

- (void) setHTTPPostBody: (NSDictionary *)  bodyDictionary

Sets the request body of the receiver to the specified data from bodyDictionary and given encoding as url form format.

Parameters
bodyDictionaryThe new request body of the receiver to the specified data from dictionary with url form encoding. Objects should be NSString compatible objects only.
See also
setHTTPBody:
- (void) setHTTPPostBody: (NSDictionary *)  bodyDictionary
encoding: (NSStringEncoding)  encoding 

Sets the request body of the receiver to the specified data from bodyDictionary as url form format.

Parameters
bodyDictionaryThe new request body of the receiver to the specified data from dictionary with url form encoding. Objects should be NSString compatible objects only.
encodingString encoding of bodyDictionary values.
See also
setHTTPBody:

The documentation for this category was generated from the following file: