arduino-audio-tools
Loading...
Searching...
No Matches
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

Constructor & Destructor Documentation

◆ HttpChunkReader() [1/2]

HttpChunkReader ( )
inline

default constructor

◆ HttpChunkReader() [2/2]

HttpChunkReader ( HttpReplyHeader header)
inline

constructor for processing final header information

Member Function Documentation

◆ available()

int available ( )
inline

◆ open()

void open ( Client client)
inline

◆ read()

virtual int read ( Client client,
uint8_t str,
int  len 
)
inlinevirtual

◆ readChunkLen()

virtual void readChunkLen ( Client client)
inlineprotectedvirtual

◆ readln()

virtual int readln ( Client client,
uint8_t str,
int  len,
bool  incl_nl = true 
)
inlinevirtual

◆ readlnInternal()

virtual int readlnInternal ( Stream client,
uint8_t str,
int  len,
bool  incl_nl = true 
)
inlinevirtualinherited

◆ removeCRLF()

void removeCRLF ( Client client)
inlineprotected

Member Data Documentation

◆ has_ended

bool has_ended = false
protected

◆ http_heaer_ptr

HttpReplyHeader* http_heaer_ptr
protected

◆ open_chunk_len

int open_chunk_len
protected

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