File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
boost/network/protocol/http Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ namespace http {
50
50
struct basic_request : public basic_message <Tag>
51
51
{
52
52
53
- mutable boost::network::uri::basic_uri< typename string<Tag>::type> uri_;
53
+ mutable boost::network::uri::uri uri_;
54
54
typedef basic_message<Tag> base_type;
55
55
56
56
public:
@@ -121,7 +121,7 @@ namespace http {
121
121
uri_ = new_uri;
122
122
}
123
123
124
- boost::network::uri::basic_uri< typename string<Tag>::type> const & uri () const {
124
+ boost::network::uri::uri const & uri () const {
125
125
return uri_;
126
126
}
127
127
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ namespace boost { namespace network { namespace http {
24
24
operator string_type () {
25
25
return message_.uri ().raw ();
26
26
}
27
- operator boost::network::uri::basic_uri< typename string<Tag>::type> () {
27
+ operator boost::network::uri::uri () {
28
28
return message_.uri ();
29
29
}
30
30
};
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ if (Boost_FOUND)
34
34
target_link_libraries (simple_wget ${OPENSSL_LIBRARIES} )
35
35
endif (OPENSSL_FOUND )
36
36
37
+ add_executable (one_liner http/one_liner.cpp )
38
+ target_link_libraries (one_liner ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} cppnetlib-uri )
39
+ set_target_properties (one_liner PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example )
40
+
37
41
add_executable (hello_world_server http/hello_world_server.cpp )
38
42
target_link_libraries (hello_world_server ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
39
43
set_target_properties (hello_world_server PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example )
You can’t perform that action at this time.
0 commit comments