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