Simple IoT Board用のライブラリです。 ESP8266ライブラリの軽量化 送信のみのソフトシリアルライブラリを含んでいます。

Dependents:   SITB_HttpGetSample SITB_IFTTTSample SITB_INA226PRC AmbientExampleSITB ... more

Embed: (wiki syntax)

« Back to documentation index

IHTTPDataIn Class Reference

IHTTPDataIn Class Reference

This is a simple interface for HTTP data storage (impl examples are Key/Value Pairs, File, etc...) More...

#include <IHTTPData.h>

Inherits IHTTPData.

Inherited by HTTPText.

Protected Member Functions

virtual void writeReset ()=0
 Reset stream to its beginning Called by the HTTPClient on each new request.
virtual int write (const char *buf, size_t len)=0
 Write a piece of data transmitted by the server.
virtual void setDataType (const char *type)=0
 Set MIME type.
virtual void setIsChunked (bool chunked)=0
 Determine whether the data is chunked Recovered from Transfer-Encoding header.
virtual void setDataLen (size_t len)=0
 If the data is not chunked, set its size From Content-Length header.
virtual bool getHeader (char *header, size_t maxHeaderLen)
 Get a specific header.

Friends

class HTTPClient

Detailed Description

This is a simple interface for HTTP data storage (impl examples are Key/Value Pairs, File, etc...)

Definition at line 72 of file IHTTPData.h.


Member Function Documentation

virtual bool getHeader ( char *  header,
size_t  maxHeaderLen 
) [protected, virtual, inherited]

Get a specific header.

Definition at line 33 of file IHTTPData.h.

virtual void setDataLen ( size_t  len ) [protected, pure virtual]

If the data is not chunked, set its size From Content-Length header.

Implemented in HTTPText.

virtual void setDataType ( const char *  type ) [protected, pure virtual]

Set MIME type.

Parameters:
typeInternet media type from Content-Type header

Implemented in HTTPText.

virtual void setIsChunked ( bool  chunked ) [protected, pure virtual]

Determine whether the data is chunked Recovered from Transfer-Encoding header.

Implemented in HTTPText.

virtual int write ( const char *  buf,
size_t  len 
) [protected, pure virtual]

Write a piece of data transmitted by the server.

Parameters:
bufPointer to the buffer from which to copy the data
lenLength of the buffer

Implemented in HTTPText.

virtual void writeReset (  ) [protected, pure virtual]

Reset stream to its beginning Called by the HTTPClient on each new request.

Implemented in HTTPText.