Remove the nested read loops in FastCGIConn, hide complexity inside StreamBuffer

This commit is contained in:
Ian Gulliver
2019-04-28 17:50:44 +00:00
parent 323cfc15a5
commit 45e5570959
10 changed files with 73 additions and 51 deletions

View File

@@ -10,7 +10,6 @@ int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
FastCGIServer server(FLAGS_port, [](std::unique_ptr<FastCGIRequest> request) {
LOG(INFO) << "request from " << request->GetParam("REMOTE_ADDR");
request->Write({{"Content-Type", "text/plain"}}, {"Hello world"});
request->WriteEnd();
});