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
|
|
|
|
{
|
2010-11-21 01:19:17 +01:00
|
|
|
std::wstring filename; // original file name
|
|
|
|
std::wstring tmp_filename; // file with content (in /tmp)
|
2010-01-06 20:17:53 +01:00
|
|
|
};
|
|
|
|
|
2010-07-04 22:27:14 +02:00
|
|
|
|
|
|
|
// parameters from get name:value
|
|
|
|
struct Param
|
|
|
|
{
|
2010-11-21 01:19:17 +01:00
|
|
|
std::wstring name;
|
|
|
|
std::wstring value;
|
2010-07-04 22:27:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-12-10 05:42:49 +01:00
|
|
|
// some global types used by Request class
|
2010-11-21 01:19:17 +01:00
|
|
|
typedef std::vector<std::wstring> GetTab;
|
|
|
|
typedef std::map<std::wstring, std::wstring> PostTab;
|
|
|
|
typedef std::map<std::wstring, PostFile> PostFileTab;
|
|
|
|
typedef std::vector<Param> ParamTab;
|
|
|
|
|
|
|
|
typedef std::map<std::string, std::string> CookieTab;
|
2008-12-10 05:42:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|