CPObjectCPURLRequest
@implementation CPURLRequest : CPObject
A helper object for CPURLConnection
, that contains
data obtained during the life of a request.
Method Summary | |
---|---|
+(id) | requestWithURL:(CPURL)aURL Creates a request with a specified URL. |
-(id) | initWithURL:(CPURL)aURL Initializes the request with a URL. |
-(CPString) | HTTPBody Returns the request's http body. |
-(CPString) | HTTPMethod Returns the request's http method. |
-(CPURL) | URL Returns the request URL. |
-(CPDictionary) | allHTTPHeaderFields Returns a dictionar of the http header fields. |
-(void) | setHTTPBody:(CPString)anHTTPBody Sets the HTTP body for this request. |
-(void) | setHTTPMethod:(CPString)anHTTPMethod Sets the request's http method. |
-(void) | setURL:(CPURL)aURL Sets the URL for this request. |
-(void) | setValue:(CPString)aValue forHTTPHeaderField:(CPString)aField Sets the value for the specified header field. |
-(CPString) | valueForHTTPHeaderField:(CPString)aField Returns the value for the specified header field. |
Method Detail |
---|
+(id)requestWithURL:(CPURL)aURL
aURL
- the URL of the requestCPURLRequest
-(id)initWithURL:(CPURL)aURL
aURL
- the url to setCPURLRequest
-(CPString)HTTPBody
-(CPString)HTTPMethod
-(CPURL)URL
-(CPDictionary)allHTTPHeaderFields
-(void)setHTTPBody:(CPString)anHTTPBody
anHTTPBody
- the new HTTP body-(void)setHTTPMethod:(CPString)anHTTPMethod
anHTTPMethod
-(void)setURL:(CPURL)aURL
aURL
- the new URL-(void)setValue:(CPString)aValue forHTTPHeaderField:(CPString)aField
aValue
- the value for the header fieldaField
- the header field-(CPString)valueForHTTPHeaderField:(CPString)aField
aField
- the header field to obtain a value forCreated on Sat Sep 13 14:15:43 PDT 2008