Add keep_alive() to HttpClientArgs

This commit is contained in:
Chunting Gu
2019-03-19 16:38:29 +08:00
parent 5853f39ac3
commit f6c305d266
3 changed files with 15 additions and 3 deletions
+1 -2
View File
@@ -93,8 +93,7 @@ void ExampleKeepAlive(const std::string& url) {
// Close
session.Request(webcc::HttpRequestArgs("GET").url(url).
ssl_verify(kSslVerify).
headers({"Connection", "Close"}));
ssl_verify(kSslVerify).keep_alive(false));
// Keep-Alive
session.Request(webcc::HttpRequestArgs("GET").url(url).