Skip to content

Commit bcdf43c

Browse files
committed
Step one: Client base compiles.
This is the first step in filling out cppnetlib-http-client lib object files.
1 parent ed4d247 commit bcdf43c

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

boost/network/protocol/http/client/base.ipp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
// (See accompanying file LICENSE_1_0.txt or copy at
88
// http://www.boost.org/LICENSE_1_0.txt)
99

10+
#include <boost/network/protocol/http/client/base.hpp>
1011
#include <boost/asio/io_service.hpp>
1112
#include <boost/asio/strand.hpp>
1213
#include <boost/thread/thread.hpp>
1314
#include <boost/bind.hpp>
1415
#include <boost/network/protocol/http/client/connection_manager.hpp>
16+
#include <boost/network/protocol/http/request/request_base.hpp>
1517

1618
namespace boost { namespace network { namespace http {
1719

@@ -20,8 +22,8 @@ struct client_base_pimpl {
2022
function<void(boost::iterator_range<char const *> const &, system::error_code const &)>
2123
body_callback_function_type;
2224
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_,
2527
std::string const & method,
2628
bool get_body,
2729
body_callback_function_type callback);
@@ -80,7 +82,7 @@ client_base_pimpl::client_base_pimpl(boost::asio::io_service & service,
8082
BOOST_THROW_EXCEPTION(std::runtime_error("Cannot allocate sentinel; not enough memory."));
8183
}
8284

83-
~client_base_pimpl::client_base_pimpl()
85+
client_base_pimpl::~client_base_pimpl()
8486
{
8587
sentinel_.reset();
8688
connection_manager_->reset();
@@ -92,7 +94,7 @@ client_base_pimpl::client_base_pimpl(boost::asio::io_service & service,
9294
}
9395

9496
response const client_base_pimpl::request_skeleton(
95-
request const & request_,
97+
request_base const & request_,
9698
std::string const & method,
9799
bool get_body,
98100
body_callback_function_type callback

libs/network/src/http/client.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright 2011 Dean Michael Berris <dberris@google.com>.
2+
// Copyright 2011 Google, Inc.
3+
// Distributed under the Boost Software License, Version 1.0.
4+
// (See accompanying file LICENSE_1_0.txt or copy at
5+
// http://www.boost.org/LICENSE_1_0.txt)
6+
7+
#ifdef BOOST_NETWORK_NO_LIB
8+
#undef BOOST_NETWORK_NO_LIB
9+
#endif
10+
11+
#include <boost/network/protocol/http/client/base.ipp>

0 commit comments

Comments
 (0)