Skip to content

Commit ed4d247

Browse files
committed
Progress on build of some tests.
This resolves some dependency issues on the cppnetlib-http-client-connections lib. From here on out I'm moving on to the development of the meat of the client implementation, as well as the functionality. It looks like (at least optimistically) the event horizon is at least visible from this black hole.
1 parent 24e49cb commit ed4d247

File tree

6 files changed

+23
-3
lines changed

6 files changed

+23
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ struct simple_connection_manager_pimpl {
5555
bool cache_resolved_, follow_redirects_;
5656
optional<std::string> openssl_certificate_, openssl_verify_path_;
5757
shared_ptr<connection_factory> connection_factory_;
58-
5958
};
6059

6160
simple_connection_manager::simple_connection_manager(bool cache_resolved,

boost/network/uri/accessors.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Map &query_map(const uri &uri_, Map &map) {
5151
return map;
5252
}
5353

54+
inline
5455
std::string username(const uri &uri_) {
5556
uri::const_range_type user_info_range = uri_.user_info_range();
5657
uri::const_iterator it(boost::begin(user_info_range)), end(boost::end(user_info_range));
@@ -62,6 +63,7 @@ std::string username(const uri &uri_) {
6263
return std::string(boost::begin(user_info_range), it);
6364
}
6465

66+
inline
6567
std::string password(const uri &uri_) {
6668
uri::const_range_type user_info_range = uri_.user_info_range();
6769
uri::const_iterator it(boost::begin(user_info_range)), end(boost::end(user_info_range));
@@ -74,20 +76,23 @@ std::string password(const uri &uri_) {
7476
return std::string(it, boost::end(user_info_range));
7577
}
7678

79+
inline
7780
std::string decoded_path(const uri &uri_) {
7881
uri::const_range_type path_range = uri_.path_range();
7982
std::string decoded_path;
8083
decode(path_range, std::back_inserter(decoded_path));
8184
return decoded_path;
8285
}
8386

87+
inline
8488
std::string decoded_query(const uri &uri_) {
8589
uri::const_range_type query_range = uri_.query_range();
8690
std::string decoded_query;
8791
decode(query_range, std::back_inserter(decoded_query));
8892
return decoded_query;
8993
}
9094

95+
inline
9196
std::string decoded_fragment(const uri &uri_) {
9297
uri::const_range_type fragment_range = uri_.fragment_range();
9398
std::string decoded_fragment;

boost/network/uri/uri.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ bool is_hierarchical(const uri &uri_) {
292292
return false;
293293
}
294294

295+
inline
295296
bool is_opaque(const uri &uri_) {
296297
return false;
297298
}

libs/network/build/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,12 @@ add_library(cppnetlib-http-message
1313
STATIC
1414
${CPP-NETLIB_SOURCE_DIR}/libs/network/src/http/request.cpp
1515
${CPP-NETLIB_SOURCE_DIR}/libs/network/src/http/response.cpp)
16+
add_library(cppnetlib-http-client-connections
17+
STATIC
18+
${CPP-NETLIB_SOURCE_DIR}/libs/network/src/http/client_connections.cpp
19+
${CPP-NETLIB_SOURCE_DIR}/libs/network/src/http/simple_connection_manager.cpp
20+
${CPP-NETLIB_SOURCE_DIR}/libs/network/src/http/simple_connection_factory.cpp
21+
${CPP-NETLIB_SOURCE_DIR}/libs/network/src/http/connection_delegate_factory.cpp)
22+
add_library(cppnetlib-http-client
23+
STATIC
24+
${CPP-NETLIB_SOURCE_DIR}/libs/network/src/http/client.cpp)

libs/network/src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,9 @@ set(CPP-NETLIB_HTTP_CLIENT_CONNECTIONS_SRCS
3535
http/connection_delegate_factory.cpp)
3636
add_library(cppnetlib-http-client-connections ${CPP-NETLIB_HTTP_CLIENT_CONNECTIONS_SRCS})
3737

38+
set(CPP-NETLIB_HTTP_CLIENT_SRCS
39+
http/client.cpp)
40+
add_library(cppnetlib-http-client ${CPP-NETLIB_HTTP_CLIENT_SRCS})
41+
3842
set(CPP-NETLIB_UTILS_THREAD_POOL_SRCS utils/thread_pool.cpp)
3943
add_library(cppnetlib-utils-thread_pool ${CPP-NETLIB_UTILS_THREAD_POOL_SRCS})

libs/network/test/http/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@ if (Boost_FOUND)
3535
cppnetlib-uri
3636
cppnetlib-message
3737
cppnetlib-http-message
38-
cppnetlib-client-connections)
38+
cppnetlib-http-client
39+
cppnetlib-http-client-connections)
3940
target_link_libraries(cpp-netlib-http-${test}
4041
${Boost_LIBRARIES}
4142
${CMAKE_THREAD_LIBS_INIT}
4243
cppnetlib-uri
4344
cppnetlib-message
4445
cppnetlib-http-message
45-
cppnetlib-client-connections)
46+
cppnetlib-http-client
47+
cppnetlib-http-client-connections)
4648
if (OPENSSL_FOUND)
4749
target_link_libraries(cpp-netlib-http-${test} ${OPENSSL_LIBRARIES})
4850
endif()

0 commit comments

Comments
 (0)