File tree 8 files changed +34
-39
lines changed
boost/network/protocol/http
8 files changed +34
-39
lines changed Original file line number Diff line number Diff line change 9
9
#include < boost/config.hpp>
10
10
#include < boost/network/protocol/http/message.hpp>
11
11
#include < boost/network/protocol/http/request.hpp>
12
- #include < boost/network/protocol/http/response.hpp>
12
+ #include < boost/network/protocol/http/client/ response.hpp>
13
13
#include < boost/network/traits/ostringstream.hpp>
14
14
15
15
#include < boost/algorithm/string/classification.hpp>
Original file line number Diff line number Diff line change 10
10
#include < memory>
11
11
#include < functional>
12
12
#include < boost/network/protocol/http/client/pimpl.hpp>
13
- #include < boost/network/protocol/http/request.hpp>
14
- #include < boost/network/protocol/http/response.hpp>
13
+ #include < boost/network/protocol/http/client/ request.hpp>
14
+ #include < boost/network/protocol/http/client/ response.hpp>
15
15
16
16
namespace boost {
17
17
namespace network {
18
18
namespace http {
19
19
20
- template <class Tag >
21
- struct basic_request ;
22
-
23
- template <class Tag >
24
- struct basic_response ;
25
-
26
20
template <class Tag , unsigned version_major, unsigned version_minor>
27
21
class basic_client_facade {
28
22
typedef basic_client_impl<Tag, version_major, version_minor> pimpl_type;
Original file line number Diff line number Diff line change 3
3
// (See accompanying file LICENSE_1_0.txt or copy at
4
4
// http://www.boost.org/LICENSE_1_0.txt)
5
5
6
+ #if !defined(BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_REQUEST_INC)
7
+ #define BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_REQUEST_INC
8
+
6
9
#include < boost/network/protocol/http/impl/request.hpp>
7
10
8
11
namespace boost {
9
12
namespace network {
10
13
namespace http {
11
14
using client_request = basic_request<tags::http_async_8bit_tcp_resolve>;
12
- } // namespace http
13
- } // namespace network
14
- } // namespace boost
15
+ } // namespace http
16
+ } // namespace network
17
+ } // namespace boost
18
+
19
+ #endif // BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_REQUEST_INC
Original file line number Diff line number Diff line change
1
+ // Copyright 2016 Glyn Matthews.
2
+ // Distributed under the Boost Software License, Version 1.0.
3
+ // (See accompanying file LICENSE_1_0.txt or copy at
4
+ // http://www.boost.org/LICENSE_1_0.txt)
5
+
6
+ #if !defined(BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_RESPONSE_INC)
7
+ #define BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_RESPONSE_INC
8
+
9
+ #include < boost/network/protocol/http/response.hpp>
10
+
11
+ namespace boost {
12
+ namespace network {
13
+ namespace http {
14
+ using client_response = basic_response<tags::http_async_8bit_tcp_resolve>;
15
+ } // namespace http
16
+ } // namespace network
17
+ } // namespace boost
18
+
19
+ #endif // BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_RESPONSE_INC
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ if (Boost_FOUND)
35
35
${CPP-NETLIB_BINARY_DIR }/tests/cpp-netlib-http-${test} )
36
36
endforeach (test )
37
37
set (TESTS
38
- http_client_request_test
39
38
client_constructor_test
40
39
client_get_test
41
40
client_get_different_port_test
Original file line number Diff line number Diff line change 3
3
// (See accompanying file LICENSE_1_0.txt or copy at
4
4
// http://www.boost.org/LICENSE_1_0.txt)
5
5
6
-
7
6
#include < gtest/gtest.h>
8
- // #include <boost/network/protocol/http/client/request.hpp>
9
- #include < boost/network/protocol/http/client.hpp>
10
-
11
-
12
- using client_request = boost::network::http::client::request;
7
+ #include < boost/network/protocol/http/client/request.hpp>
13
8
9
+ using client_request = boost::network::http::client_request;
14
10
15
11
TEST (http_client_request, construct_from_uri) {
16
12
ASSERT_NO_THROW (client_request (" http://cpp-netlib.org/" ));
Original file line number Diff line number Diff line change 3
3
// (See accompanying file LICENSE_1_0.txt or copy at
4
4
// http://www.boost.org/LICENSE_1_0.txt)
5
5
6
-
7
6
#include < gtest/gtest.h>
8
- // #include <boost/network/protocol/http/client/response.hpp>
9
- #include < boost/network/protocol/http/client.hpp>
10
-
11
-
12
- using client_response = boost::network::http::client::response;
7
+ #include < boost/network/protocol/http/client/response.hpp>
13
8
9
+ using client_response = boost::network::http::client_response;
14
10
15
11
TEST (http_client_response, construct) {
16
12
ASSERT_NO_THROW (client_response ());
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments