...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 http::message::body
member.
Defined in header <boost/beast/http/basic_file_body.hpp>
class value_type
Name |
Description |
---|---|
Close the file if open. |
|
Returns true if the file is open. |
|
Open a file at the given path with the specified mode. |
|
Move assignment. |
|
Set the open file. |
|
Returns the size of the file if open. |
|
Constructor. |
|
Destructor. |
Name |
Description |
---|---|
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.
Convenience header <boost/beast/http.hpp>