libutil++  1.9.3
 All Classes Functions Variables
helpers.h
1 /*
2 ** libutil++
3 ** $Id: helpers.h 1653 2016-02-28 19:54:59Z sella $
4 ** Copyright (c) 2011-2016 Digital Genesis, LLC. All Rights Reserved.
5 ** Released under the LGPL Version 2.1 License.
6 ** http://www.digitalgenesis.com
7 */
8 
9 #ifndef __libutilxx__sella__server__helpers_H__
10 #define __libutilxx__sella__server__helpers_H__
11 
12 #include "../../common.h"
13 #include "ServerException.h"
14 #include "HTTPConnection.h"
15 #include "../variant/Variant.h"
16 
17 #include <string>
18 
19 namespace sella {
20  namespace server {
21  namespace http {
22  enum CRUD { None, Create, Read, Update, Delete, Patch };
23 
24  sella::variant::Variant parseURI(const HTTPConnection::shared &connection, bool addHeader = false, bool addSession = false, bool addCRUD = false, bool addBody = false) throw ();
25  std::string buildOutput(const HTTPConnection::shared &connection, sella::variant::Variant &data) throw (ServerException);
26  }
27  }
28 }
29 
30 #endif
31 
32 /*
33 ** vim: noet ts=3 sw=3
34 */