ゴミ箱
Classes | Public Types | Static Public Member Functions | List of all members
boost::beast::http::basic_file_body< File > Struct Template Reference

#include <basic_file_body.hpp>

Classes

class  reader
 
class  value_type
 
class  writer
 

Public Types

using file_type = File
 The type of File this body uses. More...
 

Static Public Member Functions

static std::uint64_t size (value_type const &body)
 

Detailed Description

template<class File>
struct boost::beast::http::basic_file_body< File >

A message body represented by a file on the filesystem.

Messages with this type have bodies represented by a file on the file system. When parsing a message using this body type, the data is stored in the file pointed to by the path, which must be writable. When serializing, the implementation will read the file and present those octets as the body content. This may be used to serve content from a directory as part of a web service.

Template Parameters
FileThe implementation to use for accessing files. This type must meet the requirements of File.

Member Typedef Documentation

template<class File >
using boost::beast::http::basic_file_body< File >::file_type = File

The type of File this body uses.

Member Function Documentation

template<class File >
std::uint64_t boost::beast::http::basic_file_body< File >::size ( value_type const &  body)
static

Returns the size of the body

Parameters
bodyThe file body to use

The documentation for this struct was generated from the following file: