3333namespace libbitcoin {
3434namespace network {
3535
36- // / Half-duplex reading of http-request and sending of http- response.
36+ // / Half-duplex reading/writing of http-request/ response.
3737class BCT_API channel_http
3838 : public channel
3939{
@@ -43,7 +43,7 @@ class BCT_API channel_http
4343 using interface = rpc::interface::http;
4444 using dispatcher = rpc::dispatcher<interface>;
4545
46- // / Subscribe to request from peer (requires strand).
46+ // / Subscribe to request from client (requires strand).
4747 // / Event handler is always invoked on the channel strand.
4848 template <class Request >
4949 inline void subscribe (auto && handler) NOEXCEPT
@@ -71,7 +71,7 @@ class BCT_API channel_http
7171 // / Must call after successful message handling if no stop.
7272 virtual void receive () NOEXCEPT;
7373
74- // / Serialize and write http response to peer (requires strand).
74+ // / Serialize and write http response to client (requires strand).
7575 // / Completion handler is always invoked on the channel strand.
7676 virtual void send (http::response&& response,
7777 result_handler&& handler) NOEXCEPT;
@@ -89,7 +89,7 @@ class BCT_API channel_http
8989 // / Size and assign response_buffer_ if value type is json or json-rpc.
9090 virtual void assign_json_buffer (http::response& response) NOEXCEPT;
9191
92- // Handlers.
92+ // / Handlers.
9393 virtual void handle_receive (const code& ec, size_t bytes,
9494 const http::request_cptr& request) NOEXCEPT;
9595 virtual void handle_send (const code& ec, size_t bytes, http::response_ptr&,
0 commit comments