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.
IHttpDataOut Class Reference
This is a simple interface for HTTP data storage (impl examples are Key/Value Pairs, File, etc...) More...
#include <IHttpDataOut.h>
Inherited by HttpText.
Public Member Functions | |
| virtual void | readReset ()=0 |
| Reset stream to its beginning Called by the HTTPClient on each new request. | |
| virtual int | read (char *buf, size_t len, size_t *pReadLen)=0 |
| Read a piece of data to be transmitted. | |
| virtual int | getDataType (char *type, size_t maxTypeLen)=0 |
| Get MIME type. | |
| virtual bool | getIsChunked ()=0 |
| Determine whether the HTTP client should chunk the data Used for Transfer-Encoding header. | |
| virtual size_t | getDataLen ()=0 |
| If the data is not chunked, get its size Used for Content-Length header. | |
Detailed Description
This is a simple interface for HTTP data storage (impl examples are Key/Value Pairs, File, etc...)
Definition at line 34 of file IHttpDataOut.h.
Member Function Documentation
| virtual size_t getDataLen | ( | ) | [pure virtual] |
If the data is not chunked, get its size Used for Content-Length header.
Implemented in HttpText.
| virtual int getDataType | ( | char * | type, |
| size_t | maxTypeLen | ||
| ) | [pure virtual] |
Get MIME type.
- Parameters:
-
type Internet media type from Content-Type header
Implemented in HttpText.
| virtual bool getIsChunked | ( | ) | [pure virtual] |
Determine whether the HTTP client should chunk the data Used for Transfer-Encoding header.
Implemented in HttpText.
| virtual int read | ( | char * | buf, |
| size_t | len, | ||
| size_t * | pReadLen | ||
| ) | [pure virtual] |
Read a piece of data to be transmitted.
- Parameters:
-
buf Pointer to the buffer on which to copy the data len Length of the buffer pReadLen Pointer to the variable on which the actual copied data length will be stored
Implemented in HttpText.
| virtual void readReset | ( | ) | [pure virtual] |
Reset stream to its beginning Called by the HTTPClient on each new request.
Implemented in HttpText.
Generated on Tue Jul 12 2022 15:55:23 by
1.7.2