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
1515
1616## link libs
1717
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)
2020
2121target_link_libraries (${project_name} -lib
2222 PUBLIC oatpp::oatpp
Original file line number Diff line number Diff line change 77#include " oatpp-curl/RequestExecutor.hpp"
88
99#include " oatpp/web/client/HttpRequestExecutor.hpp"
10- #include " oatpp/network/client/SimpleTCPConnectionProvider .hpp"
10+ #include " oatpp/network/tcp/ client/ConnectionProvider .hpp"
1111
1212#include " oatpp/parser/json/mapping/ObjectMapper.hpp"
1313
1414#include < iostream>
1515
1616std::shared_ptr<oatpp::web::client::RequestExecutor> createOatppExecutor () {
1717 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 } );
1919 return oatpp::web::client::HttpRequestExecutor::createShared (connectionProvider);
2020}
2121
You can’t perform that action at this time.
0 commit comments