31 lines
522 B
C++
31 lines
522 B
C++
#ifndef __HTTPService_h__
|
|
#define __HTTPService_h__
|
|
|
|
#include "Service.h"
|
|
#include "HTTPSessions.h"
|
|
#include "PageService.h"
|
|
#include "Exception.h"
|
|
#include "HTTPHandler.h"
|
|
|
|
namespace http {
|
|
|
|
class HTTPService : public core::Service {
|
|
|
|
public:
|
|
HTTPService() {
|
|
commands.add(httpHandler, "GET ");
|
|
commands.add(httpHandler, "POST ");
|
|
}
|
|
|
|
HTTPSessions httpSessions;
|
|
PageService pageService;
|
|
|
|
private:
|
|
HTTPHandler httpHandler;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|