ActiveResourceKit  v1.2 (498.0)
 All Classes Files Functions Variables Typedefs Enumerator Properties Macros Pages
Classes | Typedefs | Functions
ARService+Private.h File Reference
#import <ActiveResourceKit/ARService.h>
#import <ActiveResourceKit/ARConnection.h>
Include dependency graph for ARService+Private.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

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.

Function Documentation

NSString* ARQueryStringForOptions ( NSDictionary *  options)

Builds a query string given a dictionary of query options.

Parameters
optionsDictionary (a Ruby hash) of query options.
Returns
The answer is an empty string when you pass 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.