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 the documentation for a snapshot of the develop branch, built from commit 9f734e7d59.
PrevUpHomeNext

http::basic_file_body::value_type

The type of the message::body member.

Synopsis

Defined in header <boost/beast/http/basic_file_body.hpp>

class value_type
Member Functions

Name

Description

close

Close the file if open.

file

Return the file.

is_open

Returns true if the file is open.

open

Open a file at the given path with the specified mode.

operator=

Move assignment.

reset

Set the open file.

size

Returns the size of the file if open.

value_type [constructor]

Constructor.

~value_type [destructor]

Destructor.

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.


PrevUpHomeNext