@@ -68,7 +68,7 @@ class connection
68
68
bool m_close;
69
69
bool m_chunked;
70
70
std::atomic<int > m_refs; // track how many threads are still referring to this
71
-
71
+
72
72
public:
73
73
connection (std::unique_ptr<boost::asio::ip::tcp::socket> socket, http_linux_server* server, hostport_listener* parent)
74
74
: m_socket(std::move(socket))
@@ -94,16 +94,15 @@ class connection
94
94
void handle_chunked_header (const boost::system::error_code& ec);
95
95
void handle_chunked_body (const boost::system::error_code& ec, int toWrite);
96
96
void dispatch_request_to_listener ();
97
- void request_data_avail (size_t size);
98
97
void do_response (bool bad_request);
99
98
template <typename ReadHandler>
100
- void async_read_until_buffersize (size_t size, ReadHandler handler);
99
+ void async_read_until_buffersize (size_t size, const ReadHandler & handler);
101
100
void async_process_response (http_response response);
102
- void cancel_sending_response_with_error (http_response response, std::exception_ptr);
103
- void handle_headers_written (http_response response, const boost::system::error_code& ec);
104
- void handle_write_large_response (http_response response, const boost::system::error_code& ec);
105
- void handle_write_chunked_response (http_response response, const boost::system::error_code& ec);
106
- void handle_response_written (http_response response, const boost::system::error_code& ec);
101
+ void cancel_sending_response_with_error (const http_response & response, const std::exception_ptr & );
102
+ void handle_headers_written (const http_response & response, const boost::system::error_code& ec);
103
+ void handle_write_large_response (const http_response & response, const boost::system::error_code& ec);
104
+ void handle_write_chunked_response (const http_response & response, const boost::system::error_code& ec);
105
+ void handle_response_written (const http_response & response, const boost::system::error_code& ec);
107
106
void finish_request_response ();
108
107
};
109
108
0 commit comments