Skip to content

Commit 7edad2e

Browse files
committed
Refactored library for changes to URI.
1 parent d2882cd commit 7edad2e

File tree

15 files changed

+452
-867
lines changed

15 files changed

+452
-867
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if (Boost_FOUND)
1818
include_directories(${Boost_INCLUDE_DIRS})
1919
endif()
2020
enable_testing()
21-
add_subdirectory(libs/network/build)
21+
add_subdirectory(libs/network/src)
2222
add_subdirectory(libs/network/test)
2323
add_subdirectory(libs/mime/test)
2424
add_subdirectory(libs/network/example)

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy