10 #include "HelloService.hpp"
11 #include <pion/http/response_writer.hpp>
24 static const std::string HELLO_HTML =
"<html><body>Hello World!</body></html>";
27 writer->write_no_copy(HELLO_HTML);
28 writer->write_no_copy(http::types::STRING_CRLF);
29 writer->write_no_copy(http::types::STRING_CRLF);
virtual void operator()(pion::http::request_ptr &http_request_ptr, pion::tcp::connection_ptr &tcp_conn)
handles requests for HelloService
static boost::shared_ptr< response_writer > create(tcp::connection_ptr &tcp_conn, http::response_ptr &http_response_ptr, finished_handler_t handler=finished_handler_t())