summaryrefslogtreecommitdiff
path: root/http_connection.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-01-02 21:45:20 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-01-02 21:45:46 +0100
commitb72175dab679c14be80b6e5db7129f8d3b518079 (patch)
tree88d82aaed69f83c0fa68a2831a029527eea4a413 /http_connection.h
parentb53ea34b123721f70ae6e4ff4eb96e90e0664ba4 (diff)
Add HTTP::Connection::send_error.
Diffstat (limited to 'http_connection.h')
-rw-r--r--http_connection.h7
1 files changed, 5 insertions, 2 deletions
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<std::string, std::string> 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);