Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2018. The current version is 1.90.0.
Inform the parser that the end of stream was reached.
void put_eof( error_code& ec);
In certain cases, HTTP needs to know where the end of the stream is. For example, sometimes servers send responses without Content-Length and expect the client to consume input (for the body) until EOF. Callbacks and errors will still be processed as usual.
This is typically called when a read from the underlying stream object
sets the error code to boost::asio::error::eof.
Only valid after parsing a complete header.
|
Name |
Description |
|---|---|
|
|
Set to the error, if any occurred. |