| 65 | } |
| 66 | |
| 67 | void bcos::boostssl::http::HttpStreamImpl::asyncRead(boost::beast::flat_buffer& _buffer, |
| 68 | boost::beast::http::request_parser<boost::beast::http::string_body>& _parser, |
| 69 | HttpStreamRWHandler _handler) |
| 70 | { |
| 71 | if (!m_closed.test()) |
| 72 | { |
| 73 | boost::beast::http::async_read(*m_stream, _buffer, _parser, std::move(_handler)); |
| 74 | } |
| 75 | } |
| 76 | void bcos::boostssl::http::HttpStreamImpl::asyncWrite( |
| 77 | const HttpResponse& _httpResp, HttpStreamRWHandler _handler) |
| 78 | { |