| 113 | class ChunkedBodyReadStream : public BodyReadStream { |
| 114 | public: |
| 115 | ChunkedBodyReadStream(net::ISocketStream *stream, std::string_view body) : |
| 116 | BodyReadStream(stream, body, 0) { |
| 117 | m_line_size = body.size(); |
| 118 | m_get_line_buf = (char*)body.data(); |
| 119 | } |
| 120 | int close() override { |
| 121 | if (!m_finish) return -1; |
| 122 | return 0; |