HTTP Client data container for form(multipart/form-data)

Dependencies:   mbed EthernetInterface HTTPClient mbed-rtos

Revision:
1:77c616a1ab54
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HTTPNull.h	Tue Aug 28 14:39:29 2012 +0000
@@ -0,0 +1,19 @@
+/* HTTPNull.h */
+#ifndef HTTPNULL_H_
+#define HTTPNULL_H_
+
+#include "../IHTTPData.h"
+
+class HTTPNull : public IHTTPDataIn
+{
+public:
+  HTTPNull();
+protected:
+  //IHTTPDataIn
+  virtual int write(const char* buf, size_t len);
+  virtual void setDataType(const char* type); //Internet media type from Content-Type header
+  virtual void setIsChunked(bool chunked); //From Transfer-Encoding header
+  virtual void setDataLen(size_t len); //From Content-Length header, or if the transfer is chunked, next chunk length
+};
+
+#endif // HTTPNULL_H_