Request Class Reference
#include <Request.h>
List of all members.
Constructor & Destructor Documentation
00024 {
00025 std::cerr << "Request object is build!\n";
00026 parse();
00027 }
00029 {
00030 cleanUp();
00031 }
Member Function Documentation
| std::vector<std::string> Request::allParams |
( |
const std::string |
key |
) |
|
| void Request::dumpParams |
( |
|
) |
|
00127 {
00128 repository.dump();
00129 }
| std::string Request::param |
( |
const std::string |
key |
) |
|
00072 {
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085 if (getenv("QUERY_STRING")){
00086 data = getenv("QUERY_STRING");
00087 }
00088
00089 if (data.length() > 0){
00090 data += "&";
00091 }
00092
00093 data = data + getPostParams();
00094 tool.Tokenize(data, tokens);
00095
00096 cerr << data;
00097
00098
00099 for (unsigned int i = 0; i < tokens.size(); i++){
00100 paramsToken.clear();
00101 tool.TokenizeFirst(tokens[i], paramsToken, "=");
00102 std::string key("");
00103
00104
00105 for (unsigned int j = 0; j < paramsToken.size(); j++){
00106 if (key.length() <= 0){
00107 key = paramsToken[j];
00108 } else {
00109 repository.push(key, paramsToken[j]);
00110 }
00111 }
00112 }
00113 }
| void Request::sendHeaders |
( |
std::ostream & |
os = std::cout |
) |
|
| void Request::setHeader |
( |
std::string |
header, |
|
|
std::string |
value | |
|
) |
| | |
| void Request::setParam |
( |
const std::string |
key, |
|
|
const std::string |
value | |
|
) |
| | |
The documentation for this class was generated from the following files: