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

Implements a simple connection delegate designed for collecting the response, including the body data, and for working around SSL challenges. More...

#import <ARURLConnectionDelegate.h>

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

Instance Methods

(void) - connection:didFailWithError: [implementation]
 
(BOOL) - connection:canAuthenticateAgainstProtectionSpace: [implementation]
 
(void) - connection:didReceiveAuthenticationChallenge: [implementation]
 Responds to authentication challenges.
 
(void) - connection:didReceiveResponse: [implementation]
 
(void) - connection:didReceiveData: [implementation]
 
(void) - connectionDidFinishLoading: [implementation]
 

Properties

void(^ completionHandler )(ARHTTPResponse *response, NSError *error)
 
NSURLResponse * response
 
NSMutableData * data
 

Detailed Description

Implements a simple connection delegate designed for collecting the response, including the body data, and for working around SSL challenges.

Definition at line 33 of file ARURLConnectionDelegate.h.

Method Documentation

- (BOOL) connection: (NSURLConnection *)  connection
canAuthenticateAgainstProtectionSpace: (NSURLProtectionSpace *)  protectionSpace 
implementation

Definition at line 43 of file ARURLConnectionDelegate.m.

- (void) connection: (NSURLConnection *)  connection
didFailWithError: (NSError *)  error 
implementation

Definition at line 38 of file ARURLConnectionDelegate.m.

- (void) connection: (NSURLConnection *)  connection
didReceiveAuthenticationChallenge: (NSURLAuthenticationChallenge *)  challenge 
implementation

Responds to authentication challenges.

The connection cannot continue without credentials in order to access HTTPS resources. Creates a credential, passing it to the authentication challenge's sender. Sends “server trust” provided by the protection space of the authentication challenge.

Definition at line 55 of file ARURLConnectionDelegate.m.

- (void) connection: (NSURLConnection *)  connection
didReceiveData: (NSData *)  data 
implementation

Definition at line 72 of file ARURLConnectionDelegate.m.

- (void) connection: (NSURLConnection *)  connection
didReceiveResponse: (NSURLResponse *)  response 
implementation

Definition at line 66 of file ARURLConnectionDelegate.m.

- (void) connectionDidFinishLoading: (NSURLConnection *)  connection
implementation

Definition at line 77 of file ARURLConnectionDelegate.m.

Property Documentation

- (void(^ completionHandler)(ARHTTPResponse *response, NSError *error))
readwriteatomiccopy
- (NSMutableData*) data
readwriteatomicstrong

Definition at line 51 of file ARURLConnectionDelegate.h.

- (NSURLResponse*) response
readwriteatomicstrong

Definition at line 50 of file ARURLConnectionDelegate.h.


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