From b72175dab679c14be80b6e5db7129f8d3b518079 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 2 Jan 2011 21:45:20 +0100 Subject: Add HTTP::Connection::send_error. --- http_connection.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'http_connection.h') diff --git a/http_connection.h b/http_connection.h index 23cadc6..5a01273 100644 --- a/http_connection.h +++ b/http_connection.h @@ -43,8 +43,11 @@ namespace HTTP { //! Request headers. std::map headers; - - tcp::socket socket; + + //! Send error. + void send_error(int code, std::string name); + + tcp::socket socket; private: Connection(boost::asio::io_service& io_service); void handle_write(const boost::system::error_code& error, size_t bytes_transferred); -- cgit v1.2.3