added: parameters consist of a name and a value now
sample: /dir/dir2/function/paramname:paramvalue removed: TemplatesMisc namespace git-svn-id: svn://ttmath.org/publicrep/winix/trunk@618 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -34,7 +34,7 @@ struct Request
|
||||
// request id
|
||||
// is incremented for each request and is never 0
|
||||
// (from -1 will be incremented twice)
|
||||
// it's used for some optimalization e.g. in templates
|
||||
// it's used for some optimalizations e.g. in templates
|
||||
size_t id;
|
||||
|
||||
|
||||
@@ -89,8 +89,8 @@ struct Request
|
||||
// null if there is no a function
|
||||
Function * pfunction;
|
||||
|
||||
// !! moze nazwac to poprostu param?
|
||||
std::vector<std::string*> param_table;
|
||||
// parameters (name:value)
|
||||
ParamTable param_table;
|
||||
|
||||
Error status;
|
||||
|
||||
@@ -131,7 +131,8 @@ struct Request
|
||||
|
||||
void Init();
|
||||
|
||||
bool IsParam(const char * s);
|
||||
bool IsParam(const char * param_name);
|
||||
const std::string & ParamValue(const char * param_name); // returns empty string if there is no such a parameter
|
||||
|
||||
void SetCookie(const char * name, const char * value, tm * expires = 0);
|
||||
void SetCookie(const char * name, long value, tm * expires = 0);
|
||||
@@ -200,6 +201,8 @@ private:
|
||||
// it contains '\0'
|
||||
const char char_empty;
|
||||
|
||||
// used in ParamValue(const char * param_name) when there is no such a param
|
||||
const std::string str_empty;
|
||||
|
||||
PostMultiParser post_multi_parser;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user