Make hello world plugin more verbose to allow testing
This commit is contained in:
parent
03f8845998
commit
504368b293
@ -21,7 +21,6 @@ public:
|
|||||||
std::string GetVersionString() const { return std::string("0.1a"); }
|
std::string GetVersionString() const { return std::string("0.1a"); }
|
||||||
|
|
||||||
void HandleRequest(const RouteParameters & routeParameters, http::Reply& reply) {
|
void HandleRequest(const RouteParameters & routeParameters, http::Reply& reply) {
|
||||||
std::cout << "[hello world]: runnning handler" << std::endl;
|
|
||||||
reply.status = http::Reply::ok;
|
reply.status = http::Reply::ok;
|
||||||
reply.content.append("<html><head><title>Hello World Demonstration Document</title></head><body><h1>Hello, World!</h1>");
|
reply.content.append("<html><head><title>Hello World Demonstration Document</title></head><body><h1>Hello, World!</h1>");
|
||||||
std::stringstream content;
|
std::stringstream content;
|
||||||
|
Loading…
Reference in New Issue
Block a user