...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
The type of the message::body
member.
Defined in header <boost/beast/http/basic_file_body.hpp>
class value_type
Name |
Description |
---|---|
Close the file if open. |
|
Return the file. |
|
Returns |
|
Open a file at the given path with the specified mode. |
|
Move assignment. |
|
Set the open file. |
|
Set the cursor position of the file. |
|
Returns the size of the file if open. |
|
value_type [constructor] |
Constructor. |
~value_type [destructor] |
Destructor. |
Messages declared using basic_file_body
will have this type
for the body member. This rich class interface allow the file to be opened
with the file handle maintained directly in the object, which is attached
to the message.