28 lines
449 B
C++
28 lines
449 B
C++
#ifndef __HTTPService_h__
|
|
#define __HTTPService_h__
|
|
|
|
#include "Service.h"
|
|
#include "HTTPServer.h"
|
|
#include "_GET.h"
|
|
#include "_POST.h"
|
|
|
|
namespace http {
|
|
|
|
class HTTPService : public core::Service {
|
|
|
|
public:
|
|
HTTPService::HTTPService(HTTPServer &server) : core::Service(server) {
|
|
commands.add(get, "GET ");
|
|
commands.add(post, "POST ");
|
|
}
|
|
|
|
private:
|
|
_GET get;
|
|
_POST post;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|