2008-12-10 05:42:49 +01:00
|
|
|
/*
|
2010-02-28 01:08:10 +01:00
|
|
|
* This file is a part of Winix
|
2008-12-10 05:42:49 +01:00
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
2010-02-28 22:33:06 +01:00
|
|
|
* Copyright (c) 2008-2010, Tomasz Sowa
|
2008-12-10 05:42:49 +01:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2009-04-21 22:50:55 +02:00
|
|
|
#ifndef headerfilecmslucorerequesttypes
|
|
|
|
#define headerfilecmslucorerequesttypes
|
2008-12-10 05:42:49 +01:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
2010-02-11 21:56:52 +01:00
|
|
|
#define WINIX_POSTTABLE_MAXSIZE 20
|
2010-01-06 20:17:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
struct PostFile
|
|
|
|
{
|
|
|
|
std::string filename; // original file name
|
|
|
|
std::string tmp_filename; // file with content (in /tmp)
|
|
|
|
};
|
|
|
|
|
2010-07-04 22:27:14 +02:00
|
|
|
|
|
|
|
// parameters from get name:value
|
|
|
|
struct Param
|
|
|
|
{
|
|
|
|
std::string name;
|
|
|
|
std::string value;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-12-10 05:42:49 +01:00
|
|
|
// some global types used by Request class
|
2010-08-10 22:43:38 +02:00
|
|
|
typedef std::vector<std::string> GetTab;
|
|
|
|
typedef std::map<std::string, std::string> PostTab;
|
|
|
|
typedef std::map<std::string, PostFile> PostFileTab;
|
|
|
|
typedef std::map<std::string, std::string> CookieTab;
|
|
|
|
typedef std::vector<Param> ParamTab;
|
2008-12-10 05:42:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|