API  0.9.10
CPURLRequest Class Reference

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

#import <CPURLRequest.h>

+ Inheritance diagram for CPURLRequest:

Instance Methods

(CPDictionary- allHTTPHeaderFields
 
(CPURLRequestCachePolicy) - cachePolicy
 
(id) - copy
 
(CPString- HTTPBody
 
(CPString- HTTPMethod
 
(id) - init
 
(id) - initWithURL:
 
(id) - initWithURL:cachePolicy:timeoutInterval:
 
(void) - setHTTPBody:
 
(void) - setHTTPMethod:
 
(void) - setURL:
 
(void) - setValue:forHTTPHeaderField:
 
(void) - setWithCredentials:
 
(CPTimeInterval) - timeoutInterval
 
(CPURL- URL
 
(CPString- valueForHTTPHeaderField:
 
(BOOL) - withCredentials
 
- 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
 
(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:
 
(void) - performSelector:withObject:afterDelay:
 
(void) - performSelector:withObject:afterDelay:inModes:
 
(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:
 
(id) + requestWithURL:cachePolicy:timeoutInterval:
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(void) + cancelPreviousPerformRequestsWithTarget:
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
 
(Class) + class
 
(BOOL) + conformsToProtocol:
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesImplementSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isBindingExclusive:
 
(BOOL) + isSubclassOfClass:
 
(CPSet) + keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + object:performSelector:withObject:afterDelay:inModes:
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

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

◆ allHTTPHeaderFields()

- (CPDictionary) allHTTPHeaderFields
implementation

Synthesized accessor method.

Provided by category CPURLRequest(CPSynthesizedAccessors).

Definition at line 278 of file CPURLRequest.j.

◆ cachePolicy()

- (CPURLRequestCachePolicy) cachePolicy
implementation

Synthesized accessor method.

Provided by category CPURLRequest(CPSynthesizedAccessors).

Definition at line 294 of file CPURLRequest.j.

◆ copy()

- (id) copy
implementation

Makes a deep copy of the receiver. The copy should be functionally equivalent to the receiver.

Returns
the copy of the receiver

Reimplemented from CPObject.

Provided by category CPURLRequest(CPCopying).

Definition at line 196 of file CPURLRequest.j.

◆ HTTPBody()

- (CPString) HTTPBody
implementation

Synthesized accessor method.

Provided by category CPURLRequest(CPSynthesizedAccessors).

Definition at line 230 of file CPURLRequest.j.

◆ HTTPMethod()

- (CPString) HTTPMethod
implementation

Synthesized accessor method.

Provided by category CPURLRequest(CPSynthesizedAccessors).

Definition at line 246 of file CPURLRequest.j.

◆ init()

- (id) init
implementation

Equal to [receiver initWithURL:nil].

Reimplemented from CPObject.

Definition at line 76 of file CPURLRequest.j.

◆ initWithURL:()

- (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 108 of file CPURLRequest.j.

◆ initWithURL:cachePolicy:timeoutInterval:()

- (id) initWithURL: (CPURL anURL
cachePolicy: (CPURLRequestCachePolicy)  aCachePolicy
timeoutInterval: (CPTimeInterval)  aTimeoutInterval 
implementation

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

Parameters
aURLthe url to set
aCachePolicythe cache policy of the request
aTimeoutIntervalthe timeoutInterval of the request
Returns
the initialized CPURLRequest

Definition at line 89 of file CPURLRequest.j.

◆ requestWithURL:()

+ (id) requestWithURL: (CPURL aURL
implementation

Creates a request with a specified URL.

Parameters
aURLthe URL of the request
Returns
a CPURLRequest

Definition at line 56 of file CPURLRequest.j.

◆ requestWithURL:cachePolicy:timeoutInterval:()

+ (id) requestWithURL: (CPURL anURL
cachePolicy: (CPURLRequestCachePolicy)  aCachePolicy
timeoutInterval: (CPTimeInterval)  aTimeoutInterval 
implementation

Creates a request with a specified URL, cachePolicy and timeoutInterval

Parameters
aURLthe URL of the request
aCachePolicythe cache policy of the request
aTimeoutIntervalthe timeoutInterval of the request
Returns
a CPURLRequest

Definition at line 68 of file CPURLRequest.j.

◆ setHTTPBody:()

- (void) setHTTPBody: (CPString aValue
implementation

Synthesized accessor method.

Provided by category CPURLRequest(CPSynthesizedAccessors).

Definition at line 238 of file CPURLRequest.j.

◆ setHTTPMethod:()

- (void) setHTTPMethod: (CPString aValue
implementation

Synthesized accessor method.

Provided by category CPURLRequest(CPSynthesizedAccessors).

Definition at line 254 of file CPURLRequest.j.

◆ setURL:()

- (void) setURL: (CPURL aURL
implementation

Sets the URL for this request.

Parameters
aURLthe new URL

Provided by category CPURLRequest(CPSynthesizedAccessors).

Definition at line 133 of file CPURLRequest.j.

◆ setValue:forHTTPHeaderField:()

- (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 153 of file CPURLRequest.j.

◆ setWithCredentials:()

- (void) setWithCredentials: (BOOL)  aValue
implementation

Synthesized accessor method.

Provided by category CPURLRequest(CPSynthesizedAccessors).

Definition at line 270 of file CPURLRequest.j.

◆ timeoutInterval()

- (CPTimeInterval) timeoutInterval
implementation

Synthesized accessor method.

Provided by category CPURLRequest(CPSynthesizedAccessors).

Definition at line 286 of file CPURLRequest.j.

◆ URL()

- (CPURL) URL
implementation

Synthesized accessor method.

Provided by category CPURLRequest(CPSynthesizedAccessors).

Definition at line 214 of file CPURLRequest.j.

◆ valueForHTTPHeaderField:()

- (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 143 of file CPURLRequest.j.

◆ withCredentials()

- (BOOL) withCredentials
implementation

Synthesized accessor method.

Provided by category CPURLRequest(CPSynthesizedAccessors).

Definition at line 262 of file CPURLRequest.j.


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