// // Copyright (c) 2016-2019 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_IMPL_PARSER_HPP #define BOOST_BEAST_HTTP_IMPL_PARSER_HPP #include #include namespace boost { namespace beast { namespace http { template parser:: parser() : rd_(m_.base(), m_.body()) { } template template parser:: parser(Arg1&& arg1, ArgN&&... argn) : m_( std::forward(arg1), std::forward(argn)...) , rd_(m_.base(), m_.body()) { m_.clear(); } template template parser:: parser( parser&& other, Args&&... args) : basic_parser(std::move(other)) , m_(other.release(), std::forward(args)...) , rd_(m_.base(), m_.body()) { if(other.rd_inited_) BOOST_THROW_EXCEPTION(std::invalid_argument{ "moved-from parser has a body"}); } } // http } // beast } // boost #endif