API 0.9.5
CPURLRequest Class Reference

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

#import <CPURLRequest.h>

Inheritance diagram for CPURLRequest:

List of all members.

Instance Methods

(CPDictionary- allHTTPHeaderFields
(CPString- HTTPBody
(CPString- HTTPMethod
(id) - initWithURL:
(void) - setHTTPBody:
(void) - setHTTPMethod:
(void) - setURL:
(void) - setValue:forHTTPHeaderField:
(CPURL- URL
(CPString- valueForHTTPHeaderField:

Class Methods

(id) + requestWithURL:

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

Returns a dictionary of the http header fields

Definition at line 132 of file CPURLRequest.j.

- (CPString) HTTPBody

Returns the request's http body.

Definition at line 107 of file CPURLRequest.j.

- (CPString) HTTPMethod

Returns the request's http method

Definition at line 124 of file CPURLRequest.j.

- (id) initWithURL: (CPURL aURL

Initializes the request with a URL.

Parameters:
aURLthe url to set
Returns:
the initialized CPURLRequest

Definition at line 57 of file CPURLRequest.j.

+ (id) requestWithURL: (CPURL aURL

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

Sets the HTTP body for this request

Parameters:
anHTTPBodythe new HTTP body

Definition at line 99 of file CPURLRequest.j.

- (void) setHTTPMethod: (CPString anHTTPMethod

Sets the request's http method.

Parameters:
anHTPPMethodthe new http method

Definition at line 116 of file CPURLRequest.j.

- (void) setURL: (CPURL aURL

Sets the URL for this request.

Parameters:
aURLthe new URL

Definition at line 89 of file CPURLRequest.j.

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

Sets the value for the specified header field.

Parameters:
aValuethe value for the header field
aFieldthe header field

Definition at line 151 of file CPURLRequest.j.

- (CPURL) URL

Returns the request URL

Definition at line 80 of file CPURLRequest.j.

- (CPString) valueForHTTPHeaderField: (CPString aField

Returns the value for the specified header field.

Parameters:
aFieldthe header field to obtain a value for

Definition at line 141 of file CPURLRequest.j.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines