API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPURLRequest Class Reference

Contains data obtained during a request made with CPURLConnection. More...

#import <CPURLRequest.h>

+ Inheritance diagram for CPURLRequest:

Instance Methods

(CPDictionary) - allHTTPHeaderFields 
 
(CPString) - HTTPBody 
 
(CPString) - HTTPMethod 
 
(id) - init 
 
(id) - initWithURL: 
 
(void) - setHTTPBody: 
 
(void) - setHTTPMethod: 
 
(void) - setURL: 
 
(void) - setValue:forHTTPHeaderField: 
 
(CPURL) - URL 
 
(CPString) - valueForHTTPHeaderField: 
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context: 
 
(void) - applyChange:toKeyPath: 
 
(id) - autorelease 
 
(id) - awakeAfterUsingCoder: 
 
(void) - awakeFromCib 
 
(void) - bind:toObject:withKeyPath:options: 
 
(Class) - classForCoder 
 
(Class) - classForKeyedArchiver 
 
(CPString) - className 
 
(id) - copy 
 
(void) - dealloc 
 
(CPString) - description 
 
(CPDictionary) - dictionaryWithValuesForKeys: 
 
(void) - didChange:valuesAtIndexes:forKey: 
 
(void) - didChangeValueForKey: 
 
(void) - didChangeValueForKey:withSetMutation:usingObjects: 
 
(void) - doesNotRecognizeSelector: 
 
(CPArray) - exposedBindings 
 
(id) - forwardingTargetForSelector: 
 
(void) - forwardInvocation: 
 
(unsigned) - hash 
 
(BOOL) - implementsSelector: 
 
(CPDictionary) - infoForBinding: 
 
(BOOL) - isEqual: 
 
(BOOL) - isKindOfClass: 
 
(BOOL) - isMemberOfClass: 
 
(BOOL) - isProxy 
 
(IMP) - methodForSelector: 
 
(CPMethodSignature) - methodSignatureForSelector: 
 
(id) - mutableArrayValueForKey: 
 
(id) - mutableArrayValueForKeyPath: 
 
(id) - mutableCopy 
 
(id) - mutableSetValueForKey: 
 
(id) - mutableSetValueForKeyPath: 
 
(id) - performSelector: 
 
(id) - performSelector:withObject: 
 
(id) - performSelector:withObject:withObject: 
 
(id) - performSelector:withObjects: 
 
(void) - release 
 
(void) - removeObserver:forKeyPath: 
 
(id) - replacementObjectForArchiver: 
 
(id) - replacementObjectForCoder: 
 
(id) - replacementObjectForKeyedArchiver: 
 
(BOOL) - respondsToSelector: 
 
(id) - retain 
 
(id) - self 
 
(void) - setValue:forKey: 
 
(void) - setValue:forKeyPath: 
 
(void) - setValue:forUndefinedKey: 
 
(void) - setValuesForKeysWithDictionary: 
 
(CPString) - UID 
 
(void) - unbind: 
 
(Class) - valueClassForBinding: 
 
(id) - valueForKey: 
 
(id) - valueForKeyPath: 
 
(id) - valueForUndefinedKey: 
 
(void) - willChange:valuesAtIndexes:forKey: 
 
(void) - willChangeValueForKey: 
 
(void) - willChangeValueForKey:withSetMutation:usingObjects: 
 

Class Methods

(id) + requestWithURL: 
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly 
 
(id) + alloc 
 
(id) + allocWithCoder: 
 
(BOOL) + automaticallyNotifiesObserversForKey: 
 
(Class) + class 
 
(void) + exposeBinding: 
 
(void) + initialize 
 
(IMP) + instanceMethodForSelector: 
 
(BOOL) + instancesRespondToSelector: 
 
(BOOL) + isSubclassOfClass: 
 
(CPSet) + keyPathsForValuesAffectingValueForKey: 
 
(void) + load 
 
(id) + new 
 
(void) + setVersion: 
 
(Class) + superclass 
 
(int) + version 
 

Additional Inherited Members

- Instance Variables inherited from CPObject
Class isa
 

Detailed Description

Contains data obtained during a request made with CPURLConnection.

A helper object for CPURLConnection, that contains data obtained during the life of a request.

Definition at line 2 of file CPURLRequest.h.

Method Documentation

- (CPDictionary) allHTTPHeaderFields
implementation

Returns a dictionary of the http header fields

Definition at line 141 of file CPURLRequest.j.

- (CPString) HTTPBody
implementation

Returns the request's http body.

Definition at line 116 of file CPURLRequest.j.

- (CPString) HTTPMethod
implementation

Returns the request's http method

Definition at line 133 of file CPURLRequest.j.

- (id) init
implementation

Equal to [receiver initWithURL:nil].

Reimplemented from CPObject.

Definition at line 55 of file CPURLRequest.j.

- (id) initWithURL: (CPURL)  aURL
implementation

Initializes the request with a URL. This is the designated initializer.

Parameters
aURLthe url to set
Returns
the initialized CPURLRequest

Definition at line 66 of file CPURLRequest.j.

+ (id) requestWithURL: (CPURL)  aURL
implementation

Creates a request with a specified URL.

Parameters
aURLthe URL of the request
Returns
a CPURLRequest

Definition at line 47 of file CPURLRequest.j.

- (void) setHTTPBody: (CPString)  anHTTPBody
implementation

Sets the HTTP body for this request

Parameters
anHTTPBodythe new HTTP body

Definition at line 108 of file CPURLRequest.j.

- (void) setHTTPMethod: (CPString)  anHTTPMethod
implementation

Sets the request's http method.

Parameters
anHTPPMethodthe new http method

Definition at line 125 of file CPURLRequest.j.

- (void) setURL: (CPURL)  aURL
implementation

Sets the URL for this request.

Parameters
aURLthe new URL

Definition at line 98 of file CPURLRequest.j.

- (void) setValue: (CPString)  aValue
forHTTPHeaderField: (CPString)  aField 
implementation

Sets the value for the specified header field.

Parameters
aValuethe value for the header field
aFieldthe header field

Definition at line 160 of file CPURLRequest.j.

- (CPURL) URL
implementation

Returns the request URL

Definition at line 89 of file CPURLRequest.j.

- (CPString) valueForHTTPHeaderField: (CPString)  aField
implementation

Returns the value for the specified header field.

Parameters
aFieldthe header field to obtain a value for

Definition at line 150 of file CPURLRequest.j.


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