Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HTTPClient by
Diff: IHTTPData.h
- Revision:
- 17:679e15a3d3db
- Parent:
- 16:1f743885e7de
--- a/IHTTPData.h Thu Aug 30 15:38:57 2012 +0000
+++ b/IHTTPData.h Fri May 02 13:13:39 2014 +0000
@@ -24,8 +24,17 @@
using std::size_t;
+class IHTTPData
+{
+ protected:
+ /** Get a specific header
+ *
+ */
+ virtual bool getHeader(char* header, size_t maxHeaderLen) { return false; }
+};
+
///This is a simple interface for HTTP data storage (impl examples are Key/Value Pairs, File, etc...)
-class IHTTPDataOut
+class IHTTPDataOut : public IHTTPData
{
protected:
friend class HTTPClient;
@@ -60,7 +69,7 @@
};
///This is a simple interface for HTTP data storage (impl examples are Key/Value Pairs, File, etc...)
-class IHTTPDataIn
+class IHTTPDataIn : public IHTTPData
{
protected:
friend class HTTPClient;
