file_body.hpp 896 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // Official repository: https://github.com/boostorg/beast
  8. //
  9. #ifndef BOOST_BEAST_HTTP_FILE_BODY_HPP
  10. #define BOOST_BEAST_HTTP_FILE_BODY_HPP
  11. #include <boost/beast/core/file.hpp>
  12. #include <boost/beast/http/basic_file_body.hpp>
  13. #include <boost/assert.hpp>
  14. #include <boost/optional.hpp>
  15. #include <algorithm>
  16. #include <cstdio>
  17. #include <cstdint>
  18. #include <utility>
  19. namespace boost {
  20. namespace beast {
  21. namespace http {
  22. /// A message body represented by a file on the filesystem.
  23. using file_body = basic_file_body<file>;
  24. } // http
  25. } // beast
  26. } // boost
  27. #ifndef BOOST_BEAST_NO_FILE_BODY_WIN32
  28. #include <boost/beast/http/impl/file_body_win32.hpp>
  29. #endif
  30. #endif