aboutsummaryrefslogtreecommitdiffstats
path: root/http-client/http_client.h
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2018-02-16 17:53:36 +0100
committerMauro Sardara <msardara+fdio@cisco.com>2018-02-16 18:18:16 +0100
commita81921f0fd4296f8def24665174062782b3480be (patch)
treed645459d7fb1fa1b76159cc548af71cce85dd343 /http-client/http_client.h
parent0475d783825a6f649853da581df5d812cf5f3bae (diff)
Added reverse proxy (TCP --> ICN) functionality
Change-Id: I2305aa11aea4a37d3d63c6399c49389f78dfd91c Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'http-client/http_client.h')
-rw-r--r--http-client/http_client.h24
1 files changed, 10 insertions, 14 deletions
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 <string>
+# include <icnet/icnet_http_facade.h>
+
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;
+};