From 0f0db0ee56b69d580fe66528a379fb08d714bf4d Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 18 Nov 2011 22:52:12 -0800 Subject: Starting to re-organize the HTTP code a bit. Sharing code between the server and a potential client makes sense. Also packing requests and responses into structures / classes is probably a good idea. --- includes/Http.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'includes/Http.h') 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 +#include +#include + namespace Balau { namespace Http { +typedef std::map StringMap; +typedef std::map > FileList; + +class Request { + public: + int method; + String host; + String uri; + StringMap variables; + StringMap headers; + FileList files; + bool persistent; +}; + enum { GET, POST, -- cgit v1.2.3