diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/Http.h | 23 | ||||
-rw-r--r-- | includes/HttpServer.h | 4 | ||||
-rw-r--r-- | includes/Printer.h | 1 |
3 files changed, 28 insertions, 0 deletions
diff --git a/includes/Http.h b/includes/Http.h new file mode 100644 index 0000000..cbb118f --- /dev/null +++ b/includes/Http.h @@ -0,0 +1,23 @@ +#pragma once + +namespace Balau { + +namespace Http { + +enum { + GET, + POST, + + REDIRECT = 301, + + BAD_REQUEST = 400, + UNAUTHORIZED = 401, + FORBIDDEN = 403, + NOT_FOUND = 404, + + ERROR = 500, +}; + +}; + +}; diff --git a/includes/HttpServer.h b/includes/HttpServer.h index 2609283..7ae0dc1 100644 --- a/includes/HttpServer.h +++ b/includes/HttpServer.h @@ -5,6 +5,8 @@ namespace Balau { +class HttpWorker; + class HttpServer { public: HttpServer() : m_started(false), m_listenerPtr(NULL), m_port(80) { } @@ -18,6 +20,8 @@ class HttpServer { void * m_listenerPtr; int m_port; String m_local; + + friend class HttpWorker; }; }; diff --git a/includes/Printer.h b/includes/Printer.h index 2c40088..dee5adc 100644 --- a/includes/Printer.h +++ b/includes/Printer.h @@ -37,6 +37,7 @@ enum { E_SOCKET = 32, E_THREAD = 64, E_OUTPUT = 128, + E_HTTPSERVER = 256, }; class Printer { |