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

#import <ARConnection+Private.h>

Instance Methods

(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.
 

Detailed Description

Definition at line 27 of file ARConnection+Private.h.

Method Documentation

- (NSDictionary *) buildRequestHeaderFieldsUsingHeaders: (NSDictionary *)  headers
forHTTPMethod: (NSString *)  HTTPMethod 

Extends class ARConnection.

Definition at line 40 of file ARConnection+Private.m.

- (NSDictionary *) defaultHeaders

Supplies default headers for the connection; none by default unless a sub-class overrides this method.

Sub-classes can override this method to provide headers required for the underlying connection. Please note however, the implementation subsequently overwrites the format header. Similarly, user-supplied headers override headers injected here as defaults.

Interface Note
Rails' Active Resource gem calls this method default_header, singular. This interface makes it plural since the answer is a dictionary of headers.

Extends class ARConnection.

Definition at line 35 of file ARConnection+Private.m.

- (NSDictionary *) HTTPFormatHeaderForHTTPMethod: (NSString *)  HTTPMethod

Answers a format header for the given HTTP request method.

Parameters
HTTPMethodString containing either GET, PUT, POST, DELETE or HEAD that specifies the HTTP request method. Case must match.
Returns
A dictionary containing either an Accept or Content-Type format header along with the appropriate MIME type. Merge this dictionary with any other request header fields.

Extends class ARConnection.

Definition at line 55 of file ARConnection+Private.m.


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