Arduino DLNA Server
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tiny_dlna::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 tiny_dlna::HttpChunkReader:
Inheritance graph
[legend]
Collaboration diagram for tiny_dlna::HttpChunkReader:
Collaboration graph
[legend]

Public Member Functions

 HttpChunkReader ()
 default constructor More...
 
 HttpChunkReader (HttpReplyHeader &header)
 constructor for processing final header information More...
 
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)
 
int available ()
 
- Public Member Functions inherited from tiny_dlna::HttpLineReader
 HttpLineReader ()
 
virtual int readlnInternal (Stream &client, uint8_t *str, int len, bool incl_nl=true)
 

Protected Member Functions

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

Protected Attributes

int open_chunk_len
 
bool has_ended = false
 
HttpReplyHeaderhttp_heaer_ptr
 

Detailed Description

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

Constructor & Destructor Documentation

◆ HttpChunkReader() [1/2]

tiny_dlna::HttpChunkReader::HttpChunkReader ( )
inline

default constructor

◆ HttpChunkReader() [2/2]

tiny_dlna::HttpChunkReader::HttpChunkReader ( HttpReplyHeader header)
inline

constructor for processing final header information

Member Function Documentation

◆ available()

int tiny_dlna::HttpChunkReader::available ( )
inline

◆ open()

void tiny_dlna::HttpChunkReader::open ( Client &  client)
inline

◆ read()

virtual int tiny_dlna::HttpChunkReader::read ( Client &  client,
uint8_t *  str,
int  len 
)
inlinevirtual

◆ readChunkLen()

virtual void tiny_dlna::HttpChunkReader::readChunkLen ( Client &  client)
inlineprotectedvirtual

◆ readln()

virtual int tiny_dlna::HttpChunkReader::readln ( Client &  client,
uint8_t *  str,
int  len,
bool  incl_nl = true 
)
inlinevirtual

◆ removeCRLF()

void tiny_dlna::HttpChunkReader::removeCRLF ( Client &  client)
inlineprotected

Member Data Documentation

◆ has_ended

bool tiny_dlna::HttpChunkReader::has_ended = false
protected

◆ http_heaer_ptr

HttpReplyHeader* tiny_dlna::HttpChunkReader::http_heaer_ptr
protected

◆ open_chunk_len

int tiny_dlna::HttpChunkReader::open_chunk_len
protected

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