WeHttpRequest Class Reference

HTTP request. More...

#include <weHTTP.h>

Inheritance diagram for WeHttpRequest:

iweRequest iweOperation

List of all members.

Public Types

enum  weHttpMethod {
  wemGet, wemPost, wemPut, wemHead,
  wemTrace
}
enum  { composeOverwrite, composeAdd }

Public Member Functions

 WeHttpRequest ()
 Default constructor.
 WeHttpRequest (string url, weHttpMethod meth=wemGet, WeHttpResponse *resp=NULL)
 Constructs the object from the previous WeHttpResponse.
virtual WeURLRequestUrl (void)
 Access the ReqUrl property.
virtual void RequestUrl (const string &ReqUrl, iweOperation *resp=NULL)
 Access the ReqUrl property.
virtual void RequestUrl (const WeURL &ReqUrl, iweOperation *resp=NULL)
 Access the ReqUrl property.
void ComposePost (int method=composeOverwrite)
WeBlobData ()
 Unstructured data for the request.
WeStringLinksPostData ()
 POST method structured data.
WeProxyProxy (void) const
void Proxy (WeProxy *prx)
const weHttpMethodMethod (void) const
 Access the Method property.
void Method (const weHttpMethod &meth)
 Access the Method property.


Detailed Description

HTTP request.

Author:
A. Abramov
Date:
29.05.2009

Definition at line 142 of file weHTTP.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
composeOverwrite 
composeAdd 

Definition at line 147 of file weHTTP.h.

Enumerator:
wemGet 
wemPost 
wemPut 
wemHead 
wemTrace 

Definition at line 146 of file weHTTP.h.


Constructor & Destructor Documentation

WeHttpRequest::WeHttpRequest (  ) 

Default constructor.

Todo:
Implement this!

Definition at line 34 of file weHTTP.cpp.

WeHttpRequest::WeHttpRequest ( string  url,
WeHttpRequest::weHttpMethod  meth = wemGet,
WeHttpResponse resp = NULL 
)

Constructs the object from the previous WeHttpResponse.

Parameters:
url - The url.
meth - The request method. Default - wemGet.
resp - If non-null, the WeHttpResponse, to create chained WeHttpRequest to.
Exceptions:
WeError if given URL is malformed and can't be reconstructed from the WeHttpResponse

Todo:
Implement this!

Definition at line 50 of file weHTTP.cpp.


Member Function Documentation

void WeHttpRequest::ComposePost ( int  method = composeOverwrite  ) 

Todo:
Compose POST data

Definition at line 74 of file weHTTP.cpp.

WeBlob& WeHttpRequest::Data ( void   )  [inline]

Unstructured data for the request.

Definition at line 161 of file weHTTP.h.

void WeHttpRequest::Method ( const weHttpMethod meth  )  [inline]

Access the Method property.

Definition at line 173 of file weHTTP.h.

const weHttpMethod& WeHttpRequest::Method ( void   )  const [inline]

Access the Method property.

Definition at line 172 of file weHTTP.h.

WeStringLinks& WeHttpRequest::PostData (  )  [inline]

POST method structured data.

Definition at line 166 of file weHTTP.h.

void WeHttpRequest::Proxy ( WeProxy prx  )  [inline]

Definition at line 178 of file weHTTP.h.

WeProxy* WeHttpRequest::Proxy ( void   )  const [inline]

Definition at line 177 of file weHTTP.h.

void WeHttpRequest::RequestUrl ( const WeURL ReqUrl,
iweOperation resp = NULL 
) [virtual]

Access the ReqUrl property.

Exceptions:
WeError if given URL is malformed and can't be reconstructed from the WeHttpResponse

Implements iweRequest.

Definition at line 66 of file weHTTP.cpp.

void WeHttpRequest::RequestUrl ( const string &  ReqUrl,
iweOperation resp = NULL 
) [virtual]

Access the ReqUrl property.

Exceptions:
WeError if given URL is malformed and can't be reconstructed from the WeHttpResponse

Implements iweRequest.

Definition at line 58 of file weHTTP.cpp.

virtual WeURL& WeHttpRequest::RequestUrl ( void   )  [inline, virtual]

Access the ReqUrl property.

Exceptions:
WeError if given URL is malformed and can't be reconstructed from the WeHttpResponse

Implements iweRequest.

Definition at line 152 of file weHTTP.h.


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


 
©2009 Positive Technologies
 
Generated on Tue Jul 14 18:27:31 2009 for WebEngine by 
 
 
1.5.7
 
Get wpcObj at SourceForge.net. Fast, secure and Free Open Source software downloads