Mercurial > hg > orthanc
comparison Core/HttpServer/MongooseServer.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 | 7d88f3f4a3b3 |
children | 6e7e5ed91c2d |
comparison
equal
deleted
inserted
replaced
1114:adfd2c7a92f3 | 1115:da56a7916e8a |
---|---|
76 bool authentication_; | 76 bool authentication_; |
77 bool ssl_; | 77 bool ssl_; |
78 std::string certificate_; | 78 std::string certificate_; |
79 uint16_t port_; | 79 uint16_t port_; |
80 IIncomingHttpRequestFilter* filter_; | 80 IIncomingHttpRequestFilter* filter_; |
81 bool keepAlive_; | |
81 | 82 |
82 bool IsRunning() const; | 83 bool IsRunning() const; |
83 | 84 |
84 public: | 85 public: |
85 MongooseServer(); | 86 MongooseServer(); |
116 return ssl_; | 117 return ssl_; |
117 } | 118 } |
118 | 119 |
119 void SetSslEnabled(bool enabled); | 120 void SetSslEnabled(bool enabled); |
120 | 121 |
122 bool IsKeepAliveEnabled() const | |
123 { | |
124 return keepAlive_; | |
125 } | |
126 | |
127 void SetKeepAliveEnabled(bool enabled); | |
128 | |
121 const std::string& GetSslCertificate() const | 129 const std::string& GetSslCertificate() const |
122 { | 130 { |
123 return certificate_; | 131 return certificate_; |
124 } | 132 } |
125 | 133 |