We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e9ffe49 + 7f5ccee commit f347d00Copy full SHA for f347d00
2 files changed
examples/TestHttp.cpp
@@ -42,6 +42,7 @@ void reqHttp(TcpService::Ptr service,
42
connector->asyncConnect(options);
43
};
44
45
+
46
int main(int argc, char **argv)
47
{
48
auto service = TcpService::Create();
@@ -98,6 +99,16 @@ int main(int argc, char **argv)
98
99
})
100
.syncConnect();
101
102
+ {
103
+ wrapper::ConnectionBuilder sb;
104
+ auto s = sb.configureConnector(connector)
105
+ .configureConnectOptions({
106
+ AsyncConnector::ConnectOptions::WithTimeout(std::chrono::seconds(2)),
107
+ AsyncConnector::ConnectOptions::WithAddr("127.0.0.1", 8010)
108
+ })
109
+ .syncConnect();
110
+ }
111
112
HttpRequest request;
113
request.setMethod(HttpRequest::HTTP_METHOD::HTTP_METHOD_GET);
114
request.setUrl("/ISteamUserAuth/AuthenticateUserTicket/v1/");
0 commit comments