summaryrefslogtreecommitdiff
path: root/http_connection.h
diff options
context:
space:
mode:
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);