32 lines
499 B
C++
32 lines
499 B
C++
#ifndef __HTTPService_h__
|
|
#define __HTTPService_h__
|
|
|
|
#include "Service.h"
|
|
#include "HTTPSessions.h"
|
|
#include "Exception.h"
|
|
#include "_GET.h"
|
|
#include "_POST.h"
|
|
|
|
namespace http {
|
|
|
|
class HTTPService : public core::Service {
|
|
|
|
public:
|
|
HTTPService() {
|
|
commands.add(get, "GET ");
|
|
commands.add(post, "POST ");
|
|
}
|
|
|
|
HTTPSessions httpSessions;
|
|
// PageService pageService;
|
|
|
|
private:
|
|
_GET get;
|
|
_POST post;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|