diff Core/HttpServer/HttpOutput.h @ 1115:da56a7916e8a

Experimental "KeepAlive" configuration option to enable HTTP Keep-Alive
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Sep 2014 17:30:13 +0200
parents ba5c0908600c
children d9c27f9f1a51
line wrap: on
line diff
--- a/Core/HttpServer/HttpOutput.h	Tue Sep 02 15:56:36 2014 +0200
+++ b/Core/HttpServer/HttpOutput.h	Tue Sep 02 17:30:13 2014 +0200
@@ -63,10 +63,12 @@
       bool hasContentLength_;
       uint64_t contentLength_;
       uint64_t contentPosition_;
+      bool keepAlive_;
       std::list<std::string> headers_;
 
     public:
-      StateMachine(IHttpOutputStream& stream);
+      StateMachine(IHttpOutputStream& stream,
+                   bool isKeepAlive);
 
       ~StateMachine();
 
@@ -92,7 +94,9 @@
     StateMachine stateMachine_;
 
   public:
-    HttpOutput(IHttpOutputStream& stream) : stateMachine_(stream)
+    HttpOutput(IHttpOutputStream& stream,
+               bool isKeepAlive) : 
+      stateMachine_(stream, isKeepAlive)
     {
     }