Skip to content

Commit 8e0a969

Browse files
committed
Merge branch 'development' of https://git01.codeplex.com/casablanca into removepoco
2 parents 54a27a1 + 9022d9e commit 8e0a969

File tree

14 files changed

+56
-42
lines changed

14 files changed

+56
-42
lines changed

Release/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,14 @@ elseif(ANDROID)
5959
elseif(UNIX) # This includes OSX
6060
find_package(Boost REQUIRED COMPONENTS random chrono system thread locale regex filesystem)
6161
find_package(Threads REQUIRED)
62-
find_package(OpenSSL REQUIRED)
62+
if(APPLE AND NOT OPENSSL_ROOT_DIR)
63+
# Prefer a homebrew version of OpenSSL over the one in /usr/lib
64+
file(GLOB OPENSSL_ROOT_DIR /usr/local/Cellar/openssl/*)
65+
# Prefer the latest (make the latest one first)
66+
list(REVERSE OPENSSL_ROOT_DIR)
67+
endif()
68+
# This should prevent linking against the system provided 0.9.8y
69+
find_package(OpenSSL 1.0.0 REQUIRED)
6370

6471
option(BUILD_SHARED_LIBS "Build shared Libraries." ON)
6572
option(BUILD_TESTS "Build tests." ON)

Release/include/cpprest/astreambuf.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ namespace std {
9696
}
9797
#endif // _MS_WINDOWS
9898

99-
namespace Concurrency { namespace streams
99+
namespace Concurrency
100+
{
101+
/// Library for asychronous streams.
102+
namespace streams
100103
{
101104
/// <summary>
102105
/// Extending the standard char_traits type with one that adds values and types

Release/include/cpprest/asyncrt_utils.h

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,27 +50,14 @@ namespace pplx = Concurrency;
5050
#include <boost/algorithm/string.hpp>
5151
#endif
5252

53+
/// Various utilities for string conversions and date and time manipulation.
5354
namespace utility
5455
{
5556

56-
#if !defined(_MS_WINDOWS) || (_MSC_VER >= 1700) // Post VS10 and Linux
57+
// Left over from VS2010 support, remains to avoid breaking.
5758
typedef std::chrono::seconds seconds;
58-
#else // VS10
59-
/// <summary>
60-
/// A type used to represent timeouts for Azure storage APIs
61-
/// </summary>
62-
// The chrono header is not present on Visual Studio with versions < 1700 so we define a 'seconds' type for timeouts
63-
class seconds
64-
{
65-
public:
66-
explicit seconds(__int64 time = 0): m_count(time) {}
67-
__int64 count() const { return m_count; }
68-
69-
private:
70-
__int64 m_count;
71-
};
72-
#endif
7359

60+
/// Functions for converting to/from std::chrono::seconds to xml string.
7461
namespace timespan
7562
{
7663
/// <summary>
@@ -86,6 +73,7 @@ namespace timespan
8673
_ASYNCRTIMP utility::seconds __cdecl xml_duration_to_seconds(utility::string_t timespanString);
8774
}
8875

76+
/// Functions for string conversions.
8977
namespace conversions
9078
{
9179
/// <summary>

Release/include/cpprest/base_uri.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ namespace web {
316316
/// A default port is one where the port is unspecified, and will be determined by the operating system.
317317
/// The choice of default port may be dictated by the scheme (http -> 80) or not.
318318
/// </summary>
319+
/// <returns><c>true</c> if this URI instance has a default port, <c>false</c> otherwise.</returns>
319320
bool is_port_default() const
320321
{
321322
return !is_empty() && this->port() == 0;

Release/include/cpprest/filestream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ namespace details {
100100

101101
/// <summary>
102102
/// Private stream buffer implementation for file streams.
103-
/// The class itself should not be used in application code, it is used by the stream definitions farther down in the header file.
103+
/// The class itself should not be used in application code, it is used by the stream definitions farther down in the header file.
104104
/// </summary>
105105
template<typename _CharType>
106106
class basic_file_buffer : public details::streambuf_state_manager<_CharType>

Release/include/cpprest/http_client.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@ namespace pplx = Concurrency;
6565

6666
#include "cpprest/oauth2.h"
6767

68+
/// The web namespace contains functionality common to multiple protocols like HTTP and WebSockets.
6869
namespace web
6970
{
71+
/// Declarations and functionality for the HTTP protocol.
7072
namespace http
7173
{
74+
/// HTTP client side library.
7275
namespace client
7376
{
7477

@@ -263,7 +266,7 @@ class http_client_config
263266
/// <summary>
264267
/// Sets the server certificate validation property.
265268
/// </summary>
266-
/// <param name="validate_cert">False to turn ignore all server certificate validation errors, true otherwise.</param>
269+
/// <param name="validate_certs">False to turn ignore all server certificate validation errors, true otherwise.</param>
267270
/// <remarks>Note ignoring certificate errors can be dangerous and should be done with caution.</remarks>
268271
void set_validate_certificates(bool validate_certs)
269272
{

Release/include/cpprest/http_listener.h

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,14 @@
3737

3838
#include "cpprest/http_msg.h"
3939

40-
namespace web {
41-
42-
/// <summary>
43-
/// Declaration to avoid making a dependency on IISHost.
44-
/// </summary>
45-
namespace iis_host
46-
{
47-
class http_iis_receiver;
48-
}
49-
40+
namespace web
41+
{
5042
namespace http
5143
{
52-
namespace experimental {
44+
/// HTTP listener is currently in beta.
45+
namespace experimental
46+
{
47+
/// HTTP server side library.
5348
namespace listener
5449
{
5550

Release/include/cpprest/http_msg.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,11 @@ namespace pplx = Concurrency;
5151
#include <boost/algorithm/string/predicate.hpp>
5252
#endif
5353

54-
namespace web {
55-
56-
/// <summary>
57-
/// Declaration to avoid making a dependency on IISHost.
58-
/// </summary>
59-
namespace iis_host
54+
namespace web
6055
{
61-
class http_iis_receiver;
62-
}
63-
6456
namespace http
6557
{
58+
6659
// URI class has been moved from web::http namespace to web namespace.
6760
// The below using declarations ensure we dont break existing code.
6861
// Please use the web::uri class going forward.
@@ -79,6 +72,10 @@ namespace client
7972
/// HTTP 1.1 specification.
8073
/// </summary>
8174
typedef utility::string_t method;
75+
76+
/// <summary>
77+
/// Common HTTP methods.
78+
/// </summary>
8279
class methods
8380
{
8481
public:
@@ -191,6 +188,10 @@ class http_exception : public std::exception
191188
return m_msg.c_str();
192189
}
193190

191+
/// <summary>
192+
/// Retrieves the underlying error code causing this exception.
193+
/// </summary>
194+
/// <returns>A std::error_code.</returns>
194195
const std::error_code & error_code() const
195196
{
196197
return m_errorCode;

Release/include/cpprest/json.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
#include "cpprest/basic_types.h"
4040
#include "cpprest/asyncrt_utils.h"
4141

42-
namespace web { namespace json
42+
namespace web
43+
{
44+
/// Library for parsing and serializing JSON values to and from C++ types.
45+
namespace json
4346
{
4447

4548
// Various forward declarations.

Release/include/cpprest/oauth1.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ namespace web
3535
{
3636
namespace http
3737
{
38+
/// oAuth 1.0 library.
3839
namespace oauth1
3940
{
4041
namespace details
@@ -91,6 +92,7 @@ class oauth1_strings
9192

9293
} // namespace web::http::oauth1::details
9394

95+
/// oAuth functionality is currently in beta.
9496
namespace experimental
9597
{
9698

0 commit comments

Comments
 (0)