aboutsummaryrefslogtreecommitdiffstats
path: root/http-server/response.h
diff options
context:
space:
mode:
Diffstat (limited to 'http-server/response.h')
-rw-r--r--http-server/response.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/http-server/response.h b/http-server/response.h
index cc8df9c6..51837556 100644
--- a/http-server/response.h
+++ b/http-server/response.h
@@ -13,8 +13,7 @@
* limitations under the License.
*/
-#ifndef ICN_WEB_SERVER_RESPONSE_H_
-#define ICN_WEB_SERVER_RESPONSE_H_
+#pragma once
#include "common.h"
@@ -25,8 +24,7 @@ class Response
public:
Response();
- virtual
- ~Response();
+ virtual ~Response();
size_t size();
@@ -41,8 +39,7 @@ class Response
const std::chrono::milliseconds &getResponseLifetime() const;
- void setResponseLifetime(const std::chrono::milliseconds &response_lifetime);
-
+ virtual void setResponseLifetime(const std::chrono::milliseconds &response_lifetime);
protected:
boost::asio::streambuf streambuf_;
@@ -51,6 +48,4 @@ class Response
std::chrono::milliseconds response_lifetime_;
};
-} // end namespace icn_httpserver
-
-#endif // ICN_WEB_SERVER_RESPONSE_H_
+} // end namespace icn_httpserver \ No newline at end of file