ActiveResourceKit
v1.2 (498.0)
|
Go to the source code of this file.
Classes | |
category | ARService(Private) |
Typedefs | |
typedef void(^ | ARServiceRequestCompletionHandler )(ARHTTPResponse *response, id object, NSError *error) |
Defines the request completion handler type. | |
Functions | |
NSString * | ARQueryStringForOptions (NSDictionary *options) |
Builds a query string given a dictionary of query options. | |
typedef void(^ ARServiceRequestCompletionHandler)(ARHTTPResponse *response, id object, NSError *error) |
Defines the request completion handler type.
Request completion handlers are C blocks receiving: (1) the HTTP response, (2) the object decoded and (3) the error object in case of error. The response always appears. The object decoded is non-nil if the response body successfully decodes according to the expected format (JSON or XML) and error is nil
. On error, object is nil
and error describes the error condition. Asynchronous connection methods utilise this completion handler type. C blocks of this type receive completion results, whether success or failure. Operation or dispatch queue assignment depends on which object invokes the block.
Definition at line 55 of file ARService+Private.h.
NSString* ARQueryStringForOptions | ( | NSDictionary * | options | ) |
Builds a query string given a dictionary of query options.
options | Dictionary (a Ruby hash) of query options. |
nil
options or the options indicate an empty dictionary. This function assumes that the given options are query options only; they should not contain prefix options; otherwise prefix options will appear in the query string. Invoking this helper function assumes you have already filtered any options by splitting apart prefix from query options. Definition at line 35 of file ARService+Private.m.