diff options
Diffstat (limited to 'boost/beast/http/file_body.hpp')
-rw-r--r-- | boost/beast/http/file_body.hpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/boost/beast/http/file_body.hpp b/boost/beast/http/file_body.hpp new file mode 100644 index 0000000000..42e7a15330 --- /dev/null +++ b/boost/beast/http/file_body.hpp @@ -0,0 +1,35 @@ +// +// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com) +// +// 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) +// +// Official repository: https://github.com/boostorg/beast +// + +#ifndef BOOST_BEAST_HTTP_FILE_BODY_HPP +#define BOOST_BEAST_HTTP_FILE_BODY_HPP + +#include <boost/beast/core/file.hpp> +#include <boost/beast/http/basic_file_body.hpp> +#include <boost/assert.hpp> +#include <boost/optional.hpp> +#include <algorithm> +#include <cstdio> +#include <cstdint> +#include <utility> + +namespace boost { +namespace beast { +namespace http { + +/// A message body represented by a file on the filesystem. +using file_body = basic_file_body<file>; + +} // http +} // beast +} // boost + +#include <boost/beast/http/impl/file_body_win32.ipp> + +#endif |