ZenLib
Http_Request.h
Go to the documentation of this file.
1 // ZenLib::Format::Http::Request - A HTTP request
2 // Copyright (C) 2008-2011 MediaArea.net SARL, Info@MediaArea.net
3 //
4 // This software is provided 'as-is', without any express or implied
5 // warranty. In no event will the authors be held liable for any damages
6 // arising from the use of this software.
7 //
8 // Permission is granted to anyone to use this software for any purpose,
9 // including commercial applications, and to alter it and redistribute it
10 // freely, subject to the following restrictions:
11 //
12 // 1. The origin of this software must not be misrepresented; you must not
13 // claim that you wrote the original software. If you use this software
14 // in a product, an acknowledgment in the product documentation would be
15 // appreciated but is not required.
16 // 2. Altered source versions must be plainly marked as such, and must not be
17 // misrepresented as being the original software.
18 // 3. This notice may not be removed or altered from any source distribution.
19 //
20 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 //
23 // A HTTP Request
24 //
25 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
26 
27 //---------------------------------------------------------------------------
28 #ifndef ZenLib_Server_Http_RequestH
29 #define ZenLib_Server_Http_RequestH
30 //---------------------------------------------------------------------------
31 
32 //---------------------------------------------------------------------------
34 #include <string>
35 #include <ctime>
36 #include <map>
37 #include <vector>
38 //---------------------------------------------------------------------------
39 
40 
41 namespace ZenLib
42 {
43 
44 namespace Format
45 {
46 
47 namespace Http
48 {
49 
50 //***************************************************************************
51 /// @brief
52 //***************************************************************************
53 
54 class Request
55 {
56 public:
57  //Constructor/Destructor
58  Request();
59  Request(const Request &Req);
60  ~Request();
61 
62  //The data
64  bool IsCopy;
65 
66  //Helpers
67  bool Http_Begin(std::istream &In, std::ostream &Out);
68  void Http_End (std::ostream &Out);
69 };
70 
71 } //Namespace
72 
73 } //Namespace
74 
75 } //Namespace
76 
77 #endif
78 
79 
80 
81