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()(const pion::http::request_ptr &http_request_ptr, const pion::tcp::connection_ptr &tcp_conn)
handles requests for HelloService
static boost::shared_ptr< response_writer > create(const tcp::connection_ptr &tcp_conn, const http::response_ptr &http_response_ptr, finished_handler_t handler=finished_handler_t())