Skip to content

Commit 770a739

Browse files
committed
Refactored library for changes to URI.
1 parent 05df270 commit 770a739

File tree

15 files changed

+453
-868
lines changed

15 files changed

+453
-868
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (WIN32)
1919
add_definitions(-D_WIN32_WINNT=0x0501)
2020
endif(WIN32)
2121
enable_testing()
22-
add_subdirectory(libs/network/build)
22+
add_subdirectory(libs/network/src)
2323
add_subdirectory(libs/network/test)
2424
if (NOT MSVC)
2525
add_subdirectory(libs/mime/test)

boost/network/protocol/http/impl/request.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
#include <boost/cstdint.hpp>
2626

27-
namespace boost { namespace network {
28-
27+
namespace boost { namespace network {
28+
2929
/** Specialize the traits for the http_server tag. */
3030
template <>
3131
struct headers_container<http::tags::http_server> :
@@ -92,7 +92,7 @@ namespace http {
9292
}
9393

9494
port_type port() const {
95-
return uri::port(uri_);
95+
return uri::port_us(uri_);
9696
}
9797

9898
string_type const path() const {
@@ -162,7 +162,7 @@ namespace http {
162162
};
163163

164164
template <>
165-
struct basic_request<tags::http_async_server>
165+
struct basic_request<tags::http_async_server>
166166
: not_quite_pod_request_base<tags::http_async_server>
167167
{};
168168

boost/network/protocol/http/message/wrappers/port.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace boost { namespace network { namespace http {
3030
}
3131

3232
operator boost::optional<boost::uint16_t> () {
33-
return port(message_.uri());
33+
return port_us(message_.uri());
3434
}
3535
};
3636

boost/network/protocol/http/policies/sync_resolver.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <utility>
1010
#include <boost/network/protocol/http/traits/resolver.hpp>
1111
#include <boost/fusion/adapted/std_pair.hpp>
12+
#include <boost/fusion/include/tuple.hpp>
1213
#include <boost/network/traits/string.hpp>
1314
#include <boost/algorithm/string/case_conv.hpp>
1415
#include <boost/unordered_map.hpp>

boost/network/uri.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <boost/network/traits/string.hpp>
1010
#include <boost/network/uri/uri.hpp>
11+
#include <boost/network/uri/http/uri.hpp>
1112

1213

1314
namespace boost { namespace network { namespace uri {

0 commit comments

Comments
 (0)