diff options
author | Mauro Sardara <msardara+fdio@cisco.com> | 2018-02-16 17:53:36 +0100 |
---|---|---|
committer | Mauro Sardara <msardara+fdio@cisco.com> | 2018-02-16 18:18:16 +0100 |
commit | a81921f0fd4296f8def24665174062782b3480be (patch) | |
tree | d645459d7fb1fa1b76159cc548af71cce85dd343 /http-server/icn_response.h | |
parent | 0475d783825a6f649853da581df5d812cf5f3bae (diff) |
Added reverse proxy (TCP --> ICN) functionality
Change-Id: I2305aa11aea4a37d3d63c6399c49389f78dfd91c
Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'http-server/icn_response.h')
-rw-r--r-- | http-server/icn_response.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/http-server/icn_response.h b/http-server/icn_response.h index 13a75629..7019590b 100644 --- a/http-server/icn_response.h +++ b/http-server/icn_response.h @@ -13,10 +13,9 @@ * limitations under the License. */ -#include "response.h" +#pragma once -#ifndef ICN_WEB_SERVER_ICNRESPONSE_H_ -#define ICN_WEB_SERVER_ICNRESPONSE_H_ +#include "response.h" namespace icn_httpserver { @@ -30,7 +29,9 @@ class IcnResponse std::string ndn_path, int response_id); - void send(const SendCallback &callback = nullptr); + void send(const SendCallback &callback = nullptr) override; + + void setResponseLifetime(const std::chrono::milliseconds &response_lifetime) override; private: std::string ndn_name_; @@ -40,5 +41,3 @@ class IcnResponse }; } // end namespace icn_httpserver - -#endif // ICN_WEB_SERVER_ICNRESPONSE_H_ |