...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Returns true
if the message
semantics require an end of file.
bool need_eof() const;
For HTTP requests, this function returns the logical NOT of a call to
keep_alive
. For HTTP responses,
this function returns the logical NOT of a call to keep_alive
if any of the following
are true:
has_content_length
would return
true
chunked
would return true
result
returns status::no_content
result
returns status::not_modified
result
returns any informational
status class (100 to 199)
Otherwise, the function returns true
.