3 #include <boost/bind.hpp>
4 #include <boost/make_shared.hpp>
11 : strand_(io_service), socket_(io_service), request_handler_(handler),
12 write_in_progress_(false)
29 boost::tribool result;
30 const char* parse_end;
50 request_, shared_from_this(), begin, end);
60 const boost::system::error_code& e,
61 std::size_t bytes_transferred)
76 boost::throw_exception(boost::system::system_error(
last_error_));
82 callback, boost::asio::placeholders::error,
83 boost::asio::placeholders::bytes_transferred)));
88 boost::shared_ptr<std::vector<unsigned char>> buffer(
89 new std::vector<unsigned char>());
91 write(boost::asio::buffer(*buffer), buffer);
96 boost::shared_ptr<std::string> str(
new std::string(content));
97 write(boost::asio::buffer(*str), str);
112 const std::vector<boost::asio::const_buffer>& buffers,
ResourcePtr resource)
128 boost::throw_exception(boost::system::system_error(
last_error_));
134 boost::asio::placeholders::error,
141 std::vector<ResourcePtr> resources)