HTTPServer/_POST.h
2019-02-24 09:36:42 -08:00

25 lines
502 B
C++

#ifndef ___POST_h__
#define ___POST_h__
#include "Command.h"
#include "Session.h"
namespace http {
class _POST : public core::Command {
public:
int processCommand(std::string request, core::Session &session) override {
core::Header header(request);
std::string data = "<html><head></head><body><h1>This Is A Test</h1></body></html>";
core::Response response();
session.out << response.getOutput(data);
session.send();
}
};
}
#endif