diff options
Diffstat (limited to 'includes/Http.h')
-rw-r--r-- | includes/Http.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/includes/Http.h b/includes/Http.h index cbb118f..cd7973f 100644 --- a/includes/Http.h +++ b/includes/Http.h @@ -1,9 +1,27 @@ #pragma once +#include <map> +#include <BString.h> +#include <Handle.h> + namespace Balau { namespace Http { +typedef std::map<String, String> StringMap; +typedef std::map<String, IO<Handle> > FileList; + +class Request { + public: + int method; + String host; + String uri; + StringMap variables; + StringMap headers; + FileList files; + bool persistent; +}; + enum { GET, POST, |