ActiveResourceKit  v1.2 (498.0)
 All Classes Files Functions Variables Typedefs Enumerator Properties Macros Pages
Instance Methods | List of all members
ARSynchronousLoadingURLConnection Class Reference

#import <ARSynchronousLoadingURLConnection.h>

Inheritance diagram for ARSynchronousLoadingURLConnection:
Inheritance graph
[legend]
Collaboration diagram for ARSynchronousLoadingURLConnection:
Collaboration graph
[legend]

Instance Methods

(void) - sendRequest:completionHandler:
 Sends a request.
 
(NSData *) - sendRequest:returningResponse:error:
 Performs a synchronous request.
 
- Instance Methods inherited from ARConnection
(id) - initWithSite:format:
 
(id) - initWithSite:
 
(NSMutableURLRequest *) - requestForHTTPMethod:path:headers:
 Builds a mutable HTTP request given a HTTP method, a path and headers.
 
(id) - init [implementation]
 
(NSDictionary *) - defaultHeaders
 Supplies default headers for the connection; none by default unless a sub-class overrides this method.
 
(NSDictionary *) - buildRequestHeaderFieldsUsingHeaders:forHTTPMethod:
 
(NSDictionary *) - HTTPFormatHeaderForHTTPMethod:
 Answers a format header for the given HTTP request method.
 

Additional Inherited Members

- Class Methods inherited from ARConnection
(NSError *) + errorForResponse:
 Decides how to handle the given HTTP response based on the response status code.
 
- Properties inherited from ARConnection
NSURL * site
 
id< ARFormatformat
 
NSTimeInterval timeout
 

Detailed Description

Definition at line 27 of file ARSynchronousLoadingURLConnection.h.

Method Documentation

- (void) sendRequest: (NSURLRequest *)  request
completionHandler: (ARConnectionCompletionHandler completionHandler 

Sends a request.

Sending a request answers the raw body data. At this level, the connection only handles the actual sending. It does not attempt to handle the response. Other object methods interpret the response code and decode the response body according to the expected format.

Reimplemented from ARConnection.

Definition at line 30 of file ARSynchronousLoadingURLConnection.m.

- (NSData *) sendRequest: (NSURLRequest *)  request
returningResponse: (NSURLResponse **)  outResponse
error: (NSError **)  outError 

Performs a synchronous request.

Parameters
requestPasses the request wrapper.
outResponseReceives the response if not NULL.
outErrorReceives any error if not NULL.
Returns
Answers the response body as raw data bytes if successful. Answers nil on error.

Definition at line 38 of file ARSynchronousLoadingURLConnection.m.


The documentation for this class was generated from the following files: