parser_fwd.hpp 830 B

1234567891011121314151617181920212223242526272829303132333435363738
  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_PARSER_FWD_HPP
  10. #define BOOST_BEAST_HTTP_PARSER_FWD_HPP
  11. #include <memory>
  12. namespace boost {
  13. namespace beast {
  14. namespace http {
  15. #ifndef BOOST_BEAST_DOXYGEN
  16. template<
  17. bool isRequest,
  18. class Body,
  19. class Allocator = std::allocator<char>>
  20. class parser;
  21. template<class Body, class Allocator = std::allocator<char>>
  22. using request_parser = parser<true, Body, Allocator>;
  23. template<class Body, class Allocator = std::allocator<char>>
  24. using response_parser = parser<false, Body, Allocator>;
  25. #endif
  26. } // http
  27. } // beast
  28. } // boost
  29. #endif