Skip to content

Commit e658be4

Browse files
committed
Update to the latest oatpp API.
1 parent 27ea271 commit e658be4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

2121
target_link_libraries(${project_name}-lib
2222
PUBLIC oatpp::oatpp

src/App.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
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

1616
std::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

0 commit comments

Comments
 (0)