Http might reply with chunks. So we need to dechunk the data. see https://en.wikipedia.org/wiki/Chunked_transfer_encoding.
More...
#include <HttpChunkReader.h>
|
| | HttpChunkReader () |
| | default constructor
|
| |
| | HttpChunkReader (HttpReplyHeader &header) |
| | constructor for processing final header information
|
| |
| int | available () |
| | returns the number of bytes which are still available in the current chunk
|
| |
| bool | open (Client &client) |
| | opens the chunk reader and reads the first chunk length
|
| |
| int | read (Client &client, uint8_t *str, int len) |
| | reads a block of data from the chunks
|
| |
| int | readln (Client &client, uint8_t *str, int len, bool incl_nl=true) |
| | reads a single line from the chunks
|
| |
| virtual int | readlnInternal (Stream &client, uint8_t *str, int len, bool incl_nl=true) |
| | reads up the the next CR LF - but never more then the indicated len.
|
| |
Http might reply with chunks. So we need to dechunk the data. see https://en.wikipedia.org/wiki/Chunked_transfer_encoding.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ HttpChunkReader() [1/2]
◆ HttpChunkReader() [2/2]
constructor for processing final header information
◆ available()
returns the number of bytes which are still available in the current chunk
◆ open()
opens the chunk reader and reads the first chunk length
◆ read()
| int read |
( |
Client & |
client, |
|
|
uint8_t * |
str, |
|
|
int |
len |
|
) |
| |
|
inline |
reads a block of data from the chunks
◆ readChunkLen()
| bool readChunkLen |
( |
Client & |
client | ) |
|
|
inlineprotected |
◆ readln()
| int readln |
( |
Client & |
client, |
|
|
uint8_t * |
str, |
|
|
int |
len, |
|
|
bool |
incl_nl = true |
|
) |
| |
|
inline |
reads a single line from the chunks
◆ readlnInternal()
| virtual int readlnInternal |
( |
Stream & |
client, |
|
|
uint8_t * |
str, |
|
|
int |
len, |
|
|
bool |
incl_nl = true |
|
) |
| |
|
inlinevirtualinherited |
reads up the the next CR LF - but never more then the indicated len.
◆ removeCRLF()
| void removeCRLF |
( |
Client & |
client | ) |
|
|
inlineprotected |
◆ has_ended
◆ http_header_ptr
◆ open_chunk_len
The documentation for this class was generated from the following file: