|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
Incremental decoder for a chunked upstream response body. More...
#include <Proxy.hpp>
Public Types | |
| enum class | Result { NeedMore , Done , Error } |
Public Member Functions | |
| Result | feed (std::string_view data, std::string &out) |
Decodes as much of data as possible, appending body bytes to out. | |
Private Types | |
| enum class | State { Size , Data , DataEnd , Trailer , Finished } |
Private Attributes | |
| State | state_ {State::Size} |
| std::string | line_ |
| size_t | remaining_ {0} |
Incremental decoder for a chunked upstream response body.
|
strong |
|
strongprivate |
| Result orbit::middleware::detail::ChunkedDecoder::feed | ( | std::string_view | data, |
| std::string & | out | ||
| ) |
Decodes as much of data as possible, appending body bytes to out.
|
private |
|
private |
|
private |