extract a new class SslClient

This commit is contained in:
Chunting Gu
2021-06-23 10:03:11 +08:00
parent 326a3ea215
commit d294cda3c1
13 changed files with 410 additions and 281 deletions
+2 -2
View File
@@ -418,7 +418,7 @@ TEST(ClientTest, KeepAlive) {
// Keep-Alive by default.
auto r = session.Send(webcc::RequestBuilder{}.Get(url)());
EXPECT_TRUE(boost::iequals(r->GetHeader("Connection"), "Keep-alive"));
EXPECT_TRUE(boost::iequals(r->GetHeader("Connection"), "Keep-Alive"));
// Close by setting Connection header directly.
r = session.Send(webcc::RequestBuilder{}.Get(url).
@@ -435,7 +435,7 @@ TEST(ClientTest, KeepAlive) {
// Keep-Alive explicitly by using request builder.
r = session.Send(webcc::RequestBuilder{}.Get(url).KeepAlive(true)());
EXPECT_TRUE(boost::iequals(r->GetHeader("Connection"), "Keep-alive"));
EXPECT_TRUE(boost::iequals(r->GetHeader("Connection"), "Keep-Alive"));
} catch (const webcc::Error& error) {
std::cerr << error << std::endl;