| | |
| | | usingBackgroundSession:(BOOL)usingBackgroundSession |
| | | completionHandler:(GULNetworkCompletionHandler)handler; |
| | | |
| | | /// Compresses and sends a POST request with the provided headers and data to the URL. The session |
| | | /// will be background session if usingBackgroundSession is YES. Otherwise, the POST session is |
| | | /// default session. Returns a session ID or nil if an error occurs. |
| | | - (NSString *)postURL:(NSURL *)url |
| | | headers:(NSDictionary *)headers |
| | | payload:(NSData *)payload |
| | | queue:(dispatch_queue_t)queue |
| | | usingBackgroundSession:(BOOL)usingBackgroundSession |
| | | completionHandler:(GULNetworkCompletionHandler)handler; |
| | | |
| | | /// Sends a GET request with the provided data to the URL. The session will be background session |
| | | /// if usingBackgroundSession is YES. Otherwise, the GET session is default session. Returns a |
| | | /// session ID or nil if an error occurs. |