Files
boost_beast/include/boost/beast/http/file_body.hpp

36 lines
850 B
C++
Raw Normal View History

2017-07-05 22:08:31 -07:00
//
2017-07-24 09:42:36 -07:00
// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
2017-07-05 22:08:31 -07:00
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
2017-07-20 13:40:34 -07:00
// Official repository: https://github.com/boostorg/beast
//
2017-07-05 22:08:31 -07:00
2017-07-20 13:40:34 -07:00
#ifndef BOOST_BEAST_HTTP_FILE_BODY_HPP
#define BOOST_BEAST_HTTP_FILE_BODY_HPP
2017-07-05 22:08:31 -07:00
2017-07-20 13:40:34 -07:00
#include <boost/beast/core/file.hpp>
#include <boost/beast/http/basic_file_body.hpp>
2017-07-05 22:08:31 -07:00
#include <boost/assert.hpp>
#include <boost/optional.hpp>
#include <algorithm>
#include <cstdio>
#include <cstdint>
#include <utility>
2017-07-20 13:40:34 -07:00
namespace boost {
2017-07-05 22:08:31 -07:00
namespace beast {
namespace http {
/// A message body represented by a file on the filesystem.
using file_body = basic_file_body<file>;
} // http
} // beast
2017-07-20 13:40:34 -07:00
} // boost
2017-07-05 22:08:31 -07:00
2017-07-20 13:40:34 -07:00
#include <boost/beast/http/impl/file_body_win32.ipp>
2017-07-05 22:08:31 -07:00
#endif