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.
Dependents: FlashAir_Twitter Neon_F303K8_04
Fork of HTTPClient by
Diff: data/HTTPText.h
- Revision:
- 19:3b1625dbd7e9
- Parent:
- 16:1f743885e7de
--- a/data/HTTPText.h Wed May 07 16:48:10 2014 +0000
+++ b/data/HTTPText.h Sun Dec 14 19:05:31 2014 +0000
@@ -28,45 +28,45 @@
class HTTPText : public IHTTPDataIn, public IHTTPDataOut
{
public:
- /** Create an HTTPText instance for output
- * @param str String to be transmitted
- */
- HTTPText(char* str);
+ /** Create an HTTPText instance for output
+ * @param str String to be transmitted
+ */
+ HTTPText(char* str);
- /** Create an HTTPText instance for input
- * @param str Buffer to store the incoming string
- * @param size Size of the buffer
- */
- HTTPText(char* str, size_t size);
+ /** Create an HTTPText instance for input
+ * @param str Buffer to store the incoming string
+ * @param size Size of the buffer
+ */
+ HTTPText(char* str, size_t size);
protected:
- //IHTTPDataIn
- virtual void readReset();
-
- virtual int read(char* buf, size_t len, size_t* pReadLen);
+ //IHTTPDataIn
+ virtual void readReset();
+
+ virtual int read(char* buf, size_t len, size_t* pReadLen);
- virtual int getDataType(char* type, size_t maxTypeLen); //Internet media type for Content-Type header
+ virtual int getDataType(char* type, size_t maxTypeLen); //Internet media type for Content-Type header
- virtual bool getIsChunked(); //For Transfer-Encoding header
+ virtual bool getIsChunked(); //For Transfer-Encoding header
- virtual size_t getDataLen(); //For Content-Length header
+ virtual size_t getDataLen(); //For Content-Length header
- //IHTTPDataOut
- virtual void writeReset();
-
- virtual int write(const char* buf, size_t len);
+ //IHTTPDataOut
+ virtual void writeReset();
+
+ virtual int write(const char* buf, size_t len);
- virtual void setDataType(const char* type); //Internet media type from Content-Type header
+ virtual void setDataType(const char* type); //Internet media type from Content-Type header
- virtual void setIsChunked(bool chunked); //From Transfer-Encoding 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
+ virtual void setDataLen(size_t len); //From Content-Length header, or if the transfer is chunked, next chunk length
private:
- char* m_str;
- size_t m_size;
+ char* m_str;
+ size_t m_size;
- size_t m_pos;
+ size_t m_pos;
};
#endif /* HTTPTEXT_H_ */
