src/response_parser.cpp

100.0% Lines (6/6) 100.0% Functions (2/2)
src/response_parser.cpp
Line TLA Hits Source Code
1 //
2 // Copyright (c) 2019 Vinnie Falco ([email protected])
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/cppalliance/http
8 //
9
10 #include <boost/http/response_parser.hpp>
11
12 #include <memory>
13
14 namespace boost {
15 namespace http {
16
17 672 response_parser::
18 response_parser(
19 672 std::shared_ptr<parser_config_impl const> cfg)
20 672 : parser(std::move(cfg), detail::kind::response)
21 {
22 672 }
23
24 static_response const&
25 3 response_parser::
26 get() const
27 {
28 3 return safe_get_response();
29 }
30
31 } // http
32 } // boost
33