100.00% Lines (6/6)
100.00% Functions (2/2)
| TLA | Baseline | Branch | ||||||
|---|---|---|---|---|---|---|---|---|
| Line | Hits | Code | Line | Hits | Code | |||
| 1 | // | 1 | // | |||||
| 2 | // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com) | 2 | // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com) | |||||
| 3 | // | 3 | // | |||||
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | 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) | 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |||||
| 6 | // | 6 | // | |||||
| 7 | // Official repository: https://github.com/cppalliance/http | 7 | // Official repository: https://github.com/cppalliance/http | |||||
| 8 | // | 8 | // | |||||
| 9 | 9 | |||||||
| 10 | #include <boost/http/response_parser.hpp> | 10 | #include <boost/http/response_parser.hpp> | |||||
| 11 | 11 | |||||||
| 12 | #include <memory> | 12 | #include <memory> | |||||
| 13 | 13 | |||||||
| 14 | namespace boost { | 14 | namespace boost { | |||||
| 15 | namespace http { | 15 | namespace http { | |||||
| 16 | 16 | |||||||
| HITCBC | 17 | 1040 | response_parser:: | 17 | 1049 | response_parser:: | ||
| 18 | response_parser( | 18 | response_parser( | |||||
| HITCBC | 19 | 1040 | std::shared_ptr<parser_config_impl const> cfg) | 19 | 1049 | std::shared_ptr<parser_config_impl const> cfg) | ||
| HITCBC | 20 | 1040 | : parser(std::move(cfg), detail::kind::response) | 20 | 1049 | : parser(std::move(cfg), detail::kind::response) | ||
| 21 | { | 21 | { | |||||
| HITCBC | 22 | 1040 | } | 22 | 1049 | } | ||
| 23 | 23 | |||||||
| 24 | static_response const& | 24 | static_response const& | |||||
| HITCBC | 25 | 3 | response_parser:: | 25 | 3 | response_parser:: | ||
| 26 | get() const | 26 | get() const | |||||
| 27 | { | 27 | { | |||||
| HITCBC | 28 | 3 | return safe_get_response(); | 28 | 3 | return safe_get_response(); | ||
| 29 | } | 29 | } | |||||
| 30 | 30 | |||||||
| 31 | } // http | 31 | } // http | |||||
| 32 | } // boost | 32 | } // boost | |||||