| Home | Libraries | People | FAQ | More

#### 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.
seek | Set the cursor position of the 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.