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

Go to the source code of this file.

Classes

class  ARConnection
 Connects to a site using a format. More...
 

Typedefs

typedef void(^ ARConnectionCompletionHandler )(ARHTTPResponse *response, NSError *error)
 Defines a lower-level connection-oriented completion handler.
 

Typedef Documentation

typedef void(^ ARConnectionCompletionHandler)(ARHTTPResponse *response, NSError *error)

Defines a lower-level connection-oriented completion handler.

The handler accepts a basic URL response, not a HTTP response necessarily. Though typically, URL responses will be HTTP responses. Apple's NSHTTPURLResponse derives from NSURLResponse. The data argument accepts the body data verbatim. When connection completes, the body remains un-decoded.

Definition at line 37 of file ARConnection.h.