mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-03-25 09:25:47 +00:00
13 lines
478 B
Objective-C
13 lines
478 B
Objective-C
#import <Foundation/NSDictionary.h>
|
|
#import <Foundation/NSString.h>
|
|
|
|
/**
|
|
Express this dictionary as a `application/x-www-form-urlencoded` string.
|
|
|
|
Most users would recognize the result of this transformation as the query
|
|
string in a browser bar. For our purposes it is the query string in a GET
|
|
request and the HTTP body for POST, PUT and DELETE requests.
|
|
|
|
If the parameters dictionary is nil or empty, returns nil.
|
|
*/
|
|
NSString *OMGFormURLEncode(NSDictionary *parameters);
|