Skip to content

Commit e22c8bb

Browse files
committed
Merge branch 'development' of https://github.com/Microsoft/cpprestsdk into development
2 parents 3cd6001 + 41eec89 commit e22c8bb

File tree

11 files changed

+90
-199
lines changed

11 files changed

+90
-199
lines changed

Build_iOS/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
Please consult the codeplex documentation for iOS compilation:
2-
3-
[](https://casablanca.codeplex.com/wikipage?title=Setup%20and%20Build%20on%20IOS)
1+
Please consult the documentation [here](https://github.com/Microsoft/cpprestsdk/wiki/How-to-build-for-iOS) for iOS compilation.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/boost.sh b/boost.sh
2+
index 2d5c05d..5c10ee9 100644
3+
--- a/boost.sh
4+
+++ b/boost.sh
5+
@@ -26,7 +26,7 @@
6+
#
7+
#===============================================================================
8+
9+
-BOOST_LIBS="atomic chrono date_time exception filesystem program_options random signals system test thread"
10+
+BOOST_LIBS="chrono filesystem random regex system thread"
11+
12+
BUILD_IOS=
13+
BUILD_OSX=

Build_iOS/fix_boost_version.patch

Lines changed: 0 additions & 186 deletions
This file was deleted.

Build_iOS/fix_ios_cmake_compiler.patch

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
diff --git a/toolchain/iOS.cmake b/toolchain/iOS.cmake
2-
index 076a6b9..2e3291a 100644
2+
index 195e3fc..567a8d3 100644
33
--- a/toolchain/iOS.cmake
44
+++ b/toolchain/iOS.cmake
5-
@@ -47,8 +47,8 @@ endif (CMAKE_UNAME)
5+
@@ -45,10 +45,10 @@ if (CMAKE_UNAME)
6+
string (REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_HOST_SYSTEM_VERSION}")
7+
endif (CMAKE_UNAME)
68

7-
# Force the compilers to gcc for iOS
9+
-# Force the compilers to gcc for iOS
10+
+# Force the compilers to clang for iOS
811
include (CMakeForceCompiler)
9-
-CMAKE_FORCE_C_COMPILER (clang Apple)
10-
-CMAKE_FORCE_CXX_COMPILER (clang++ Apple)
12+
-CMAKE_FORCE_C_COMPILER (/usr/bin/gcc Apple)
13+
-CMAKE_FORCE_CXX_COMPILER (/usr/bin/g++ Apple)
1114
+CMAKE_FORCE_C_COMPILER (/usr/bin/clang Apple)
1215
+CMAKE_FORCE_CXX_COMPILER (/usr/bin/clang++ Apple)
1316
set(CMAKE_AR ar CACHE FILEPATH "" FORCE)

CONTRIBUTORS.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ adish
2222
LeonidCSIT
2323
LocutusOfBorg
2424
kreuzerkrieg
25+
evanc
2526

2627
AutoDesk Inc.
2728
Cyrille Fauvel (cyrillef)
2829

2930
Illumina Inc.
3031
Gery Vessere ([email protected])
32+
33+
Cisco Systems
34+
Gergely Lukacsy (glukacsy)
35+
36+
thomasschaub

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## Welcome!
2+
3+
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
4+
5+
## Getting Started
6+
7+
Are you new to the C++ Rest SDK? To get going we recommend you start by taking a look at our [tutorial](https://github.com/Microsoft/cpprestsdk/wiki/Getting-Started-Tutorial) to use the http_client. It walks through how to setup a project to use the C++ Rest SDK and make a basic Http request. Other important information, like how to build the C++ Rest SDK from source, can be located on the [documentation](https://github.com/Microsoft/cpprestsdk/wiki) page.
8+
9+
## What's in the SDK:
10+
11+
* Features - HTTP client/server, JSON, URI, asynchronous streams, WebSockets client, oAuth
12+
* PPL Tasks - A powerful model for composing asynchronous operations based on C++ 11 features
13+
* Platforms - Windows desktop, Windows Store, Windows Phone, Ubuntu, OS X, iOS, and Android
14+
* Support for Visual Studio 2012, 2013, and 2015 with debugger visualizers
15+
* NuGet package with binaries for Windows and Android platforms
16+
17+
## Contribute Back!
18+
19+
Is there a feature missing that you'd like to see, or found a bug that you have a fix for? Or do you have an idea or just interest in helping out in building the library? Let us know and we'd love to work with you. For a good starting point on where we are headed and feature ideas, take a look at our [requested features and bugs](https://github.com/Microsoft/cpprestsdk/issues).
20+
21+
Big or small we'd like to take your [contributions](https://github.com/Microsoft/cpprestsdk/wiki/Make-a-contribution-and-report-issues) back to help improve the C++ Rest SDK for everyone. If interested contact us askcasablanca at Microsoft dot com.
22+
23+
## Having Trouble?
24+
25+
We'd love to get your review score, whether good or bad, but even more than that, we want to fix your problem. If you submit your issue as a Review, we won't be able to respond to your problem and ask any follow-up questions that may be necessary. The most efficient way to do that is to open a an issue in our [issue tracker](https://github.com/Microsoft/cpprestsdk/issues).
26+
27+
### Quick Links
28+
29+
* [FAQ](https://github.com/Microsoft/cpprestsdk/wiki/FAQ)
30+
* [Documentation](https://github.com/Microsoft/cpprestsdk/wiki)
31+
* [Issue Tracker](https://github.com/Microsoft/cpprestsdk/issues)
32+
* Directly contact us: <[email protected]>

Release/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ if(WEBSOCKETPP_CONFIG AND WEBSOCKETPP_CONFIG_VERSION)
174174
include(${WEBSOCKETPP_CONFIG}/websocketpp-config.cmake)
175175
include(${WEBSOCKETPP_CONFIG}/websocketpp-configVersion.cmake)
176176
message("-- Found websocketpp version " ${PACKAGE_VERSION} " on system")
177-
set(Casablanca_INCLUDE_DIRS ${Casablanca_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ${WEBSOCKETPP_INCLUDE_DIR})
177+
set(Casablanca_INCLUDE_DIRS ${Casablanca_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR} ${WEBSOCKETPP_INCLUDE_DIR})
178178
else(WEBSOCKETPP_CONFIG AND WEBSOCKETPP_CONFIG_VERSION)
179-
set(Casablanca_INCLUDE_DIRS ${Casablanca_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/libs/websocketpp)
179+
set(Casablanca_INCLUDE_DIRS ${Casablanca_INCLUDE_DIR} ${Boost_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/libs/websocketpp)
180180
message("-- websocketpp not found, using the embedded version")
181181
endif(WEBSOCKETPP_CONFIG AND WEBSOCKETPP_CONFIG_VERSION)
182182

Release/include/cpprest/oauth2.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,24 @@ class oauth2_config
446446
/// Default: "access_token".
447447
/// </summary>
448448
void set_access_token_key(utility::string_t access_token_key) { m_access_token_key = std::move(access_token_key); }
449+
450+
/// <summary>
451+
/// Get the web proxy object
452+
/// </summary>
453+
/// <returns>A reference to the web proxy object.</returns>
454+
const web_proxy& proxy() const
455+
{
456+
return m_proxy;
457+
}
458+
459+
/// <summary>
460+
/// Set the web proxy object that will be used by token_from_code and token_from_refresh
461+
/// </summary>
462+
/// <param name="proxy">A reference to the web proxy object.</param>
463+
void set_proxy(const web_proxy& proxy)
464+
{
465+
m_proxy = proxy;
466+
}
449467

450468
private:
451469
friend class web::http::client::http_client_config;
@@ -483,6 +501,8 @@ class oauth2_config
483501
utility::string_t m_scope;
484502
utility::string_t m_state;
485503

504+
web::web_proxy m_proxy;
505+
486506
bool m_implicit_grant;
487507
bool m_bearer_auth;
488508
bool m_http_basic_auth;

Release/include/cpprest/streams.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ namespace Concurrency { namespace streams
673673
if ( !_verify_and_return_task(details::_in_stream_msg, result) ) return result;
674674

675675
auto copy = std::make_shared<T>();
676-
return helper()->m_buffer.getn((CharType*)copy.get(), sizeof(T)).then([copy](pplx::task<size_t> op) -> T
676+
return helper()->m_buffer.getn((CharType*)copy.get(), sizeof(T)).then([copy](pplx::task<size_t>) -> T
677677
{
678678
return std::move(*copy);
679679
});

Release/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ target_link_libraries(${Casablanca_LIBRARY}
9292

9393
# Portions specific to cpprest binary versioning.
9494
set (CPPREST_VERSION_MAJOR 2)
95-
set (CPPREST_VERSION_MINOR 6)
95+
set (CPPREST_VERSION_MINOR 7)
9696
set (CPPREST_VERSION_REVISION 0)
9797

9898
if(WIN32)

0 commit comments

Comments
 (0)