File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ add_library(${project_name}-lib
15
15
16
16
## link libs
17
17
18
- find_package (oatpp 1.1 .0 REQUIRED )
19
- find_package (oatpp-curl 1.1 .0 REQUIRED )
18
+ find_package (oatpp 1.2 .0 REQUIRED )
19
+ find_package (oatpp-curl 1.2 .0 REQUIRED )
20
20
21
21
target_link_libraries (${project_name} -lib
22
22
PUBLIC oatpp::oatpp
Original file line number Diff line number Diff line change 7
7
#include " oatpp-curl/RequestExecutor.hpp"
8
8
9
9
#include " oatpp/web/client/HttpRequestExecutor.hpp"
10
- #include " oatpp/network/client/SimpleTCPConnectionProvider .hpp"
10
+ #include " oatpp/network/tcp/ client/ConnectionProvider .hpp"
11
11
12
12
#include " oatpp/parser/json/mapping/ObjectMapper.hpp"
13
13
14
14
#include < iostream>
15
15
16
16
std::shared_ptr<oatpp::web::client::RequestExecutor> createOatppExecutor () {
17
17
OATPP_LOGD (" App" , " Using Oat++ native HttpRequestExecutor." );
18
- auto connectionProvider = oatpp::network::client::SimpleTCPConnectionProvider ::createShared (" httpbin.org" , 80 );
18
+ auto connectionProvider = oatpp::network::tcp:: client::ConnectionProvider ::createShared ({ " httpbin.org" , 80 } );
19
19
return oatpp::web::client::HttpRequestExecutor::createShared (connectionProvider);
20
20
}
21
21
You can’t perform that action at this time.
0 commit comments