Commit fe540bc6 authored by Julian Oes's avatar Julian Oes

README: fix hello world example so it compiles

Appearantly the HTTP_PROTOTYPE macro is needed, otherwise the example
won't compile.
parent 2e1dd87a
......@@ -18,6 +18,8 @@ Full documentation is located at [http://pistache.io](http://pistache.io).
using namespace Net;
struct HelloHandler : public Http::Handler {
HTTP_PROTOTYPE(HelloHandler)
void onRequest(const Http::Request& request, Http::ResponseWriter writer) {
writer.send(Http::Code::Ok, "Hello, World!");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment