From a81921f0fd4296f8def24665174062782b3480be Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Fri, 16 Feb 2018 17:53:36 +0100 Subject: Added reverse proxy (TCP --> ICN) functionality Change-Id: I2305aa11aea4a37d3d63c6399c49389f78dfd91c Signed-off-by: Mauro Sardara --- http-client/http_client.h | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'http-client/http_client.h') diff --git a/http-client/http_client.h b/http-client/http_client.h index 19d3c41e..9bd998bd 100644 --- a/http-client/http_client.h +++ b/http-client/http_client.h @@ -13,23 +13,19 @@ * limitations under the License. */ -#ifndef HTTP_CLIENT_H_ -#define HTTP_CLIENT_H_ +#pragma once + +#include "config.h" #include +# include + class HTTPClient { public: - HTTPClient(); - ~HTTPClient(); - /** - * Download a file using HTTP GET and store in in a std::string - * @param url The URL to download - * @return The download result - */ - bool download(const std::string& url, std::ostream& out); - private: - void* curl_; -}; + virtual ~HTTPClient() = default; -#endif // HTTP_CLIENT_H_ \ No newline at end of file + virtual void setTcp() = 0; + + virtual bool download(const std::string &url, std::ostream &out) = 0; +}; -- cgit 1.2.3-korg