| 20 | boost::beast::bind_front_handler(&HttpSession::read, shared_from_this())); |
| 21 | } |
| 22 | void bcos::boostssl::http::HttpSession::read() |
| 23 | { |
| 24 | m_parser.emplace(); |
| 25 | // |
| 26 | auto httpBodySizeLimit = m_httpBodySizeLimit; |
| 27 | // set limit to http request size |
| 28 | m_parser->body_limit(httpBodySizeLimit); |
| 29 | |
| 30 | m_httpStream->asyncRead(m_buffer, *m_parser, |
| 31 | [session = shared_from_this()](boost::system::error_code _ec, |
| 32 | std::size_t bytes_transferred) { session->onRead(_ec, bytes_transferred); }); |
| 33 | } |
| 34 | void bcos::boostssl::http::HttpSession::onRead( |
| 35 | boost::beast::error_code ec, std::size_t bytes_transferred) |
| 36 | { |
no test coverage detected