Allow to stop server and restart server; allow to run loop in multiple threads.

This commit is contained in:
Chunting Gu
2019-07-30 10:35:51 +08:00
parent 0f0f6fdf8e
commit 673a98cffb
16 changed files with 465 additions and 287 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ RequestPtr RequestBuilder::operator()() {
}
// If no Keep-Alive, explicitly set `Connection` to "Close".
if (!keep_alive_) {
//if (!keep_alive_) {
request->SetHeader(headers::kConnection, "Close");
}
//}
if (body_) {
request->SetContentType(media_type_, charset_);