message_fwd.hpp 997 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // Copyright (c) 2024 Mohammad Nejati
  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_MESSAGE_FWD_HPP
  10. #define BOOST_BEAST_HTTP_MESSAGE_FWD_HPP
  11. #include <boost/beast/http/fields_fwd.hpp>
  12. namespace boost {
  13. namespace beast {
  14. namespace http {
  15. #ifndef BOOST_BEAST_DOXYGEN
  16. template<bool isRequest, class Fields = fields>
  17. class header;
  18. template<bool isRequest, class Body, class Fields = fields>
  19. class message;
  20. template<class Fields = fields>
  21. using request_header = header<true, Fields>;
  22. template<class Fields = fields>
  23. using response_header = header<false, Fields>;
  24. template<class Body, class Fields = fields>
  25. using request = message<true, Body, Fields>;
  26. template<class Body, class Fields = fields>
  27. using response = message<false, Body, Fields>;
  28. #endif
  29. } // http
  30. } // beast
  31. } // boost
  32. #endif