arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HttpChunkReader Class Reference

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>

Inheritance diagram for HttpChunkReader:
HttpLineReader

Public Member Functions

 HttpChunkReader ()
 default constructor
 
 HttpChunkReader (HttpReplyHeader &header)
 constructor for processing final header information
 
int available ()
 
void open (Client &client)
 
virtual int read (Client &client, uint8_t *str, int len)
 
virtual int readln (Client &client, uint8_t *str, int len, bool incl_nl=true)
 
virtual int readlnInternal (Stream &client, uint8_t *str, int len, bool incl_nl=true)
 

Protected Member Functions

virtual void readChunkLen (Client &client)
 
void removeCRLF (Client &client)
 

Protected Attributes

bool has_ended = false
 
HttpReplyHeaderhttp_heaer_ptr
 
int open_chunk_len
 

Detailed Description

Http might reply with chunks. So we need to dechunk the data. see https://en.wikipedia.org/wiki/Chunked_transfer_encoding.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: