7
7
// (See accompanying file LICENSE_1_0.txt or copy at
8
8
// http://www.boost.org/LICENSE_1_0.txt)
9
9
10
+ #include < boost/network/protocol/http/client/base.hpp>
10
11
#include < boost/asio/io_service.hpp>
11
12
#include < boost/asio/strand.hpp>
12
13
#include < boost/thread/thread.hpp>
13
14
#include < boost/bind.hpp>
14
15
#include < boost/network/protocol/http/client/connection_manager.hpp>
16
+ #include < boost/network/protocol/http/request/request_base.hpp>
15
17
16
18
namespace boost { namespace network { namespace http {
17
19
@@ -20,8 +22,8 @@ struct client_base_pimpl {
20
22
function<void (boost::iterator_range<char const *> const &, system::error_code const &)>
21
23
body_callback_function_type;
22
24
client_base_pimpl (shared_ptr<connection_manager> connection_manager_);
23
- client_base_pimpl (io_service & service, shared_ptr<connection_manager> connection_manager_);
24
- response const request_skeleton (request const & request_,
25
+ client_base_pimpl (asio:: io_service & service, shared_ptr<connection_manager> connection_manager_);
26
+ response const request_skeleton (request_base const & request_,
25
27
std::string const & method,
26
28
bool get_body,
27
29
body_callback_function_type callback);
@@ -80,7 +82,7 @@ client_base_pimpl::client_base_pimpl(boost::asio::io_service & service,
80
82
BOOST_THROW_EXCEPTION (std::runtime_error (" Cannot allocate sentinel; not enough memory." ));
81
83
}
82
84
83
- ~ client_base_pimpl::client_base_pimpl()
85
+ client_base_pimpl::~ client_base_pimpl ()
84
86
{
85
87
sentinel_.reset ();
86
88
connection_manager_->reset ();
@@ -92,7 +94,7 @@ client_base_pimpl::client_base_pimpl(boost::asio::io_service & service,
92
94
}
93
95
94
96
response const client_base_pimpl::request_skeleton (
95
- request const & request_,
97
+ request_base const & request_,
96
98
std::string const & method,
97
99
bool get_body,
98
100
body_callback_function_type callback
0 commit comments