28 void open(Client &client) {
35 virtual int read(Client &client, uint8_t *str,
int len) {
41 int len_processed = client.read(str, read_max);
55 virtual int readln(Client &client, uint8_t *str,
int len,
56 bool incl_nl =
true) {
61 int len_processed =
readlnInternal(client, str, read_max, incl_nl);
88 if (client.peek() ==
'\r') {
92 if (client.peek() ==
'\n') {
104 (
const char *)len_str);
115 "last chunk received");
Http might reply with chunks. So we need to dechunk the data. see https://en.wikipedia....
Definition: HttpChunkReader.h:13
int open_chunk_len
Definition: HttpChunkReader.h:81
HttpChunkReader()
default constructor
Definition: HttpChunkReader.h:16
void removeCRLF(Client &client)
Definition: HttpChunkReader.h:85
void open(Client &client)
Definition: HttpChunkReader.h:28
HttpChunkReader(HttpReplyHeader &header)
constructor for processing final header information
Definition: HttpChunkReader.h:22
virtual int read(Client &client, uint8_t *str, int len)
Definition: HttpChunkReader.h:35
bool has_ended
Definition: HttpChunkReader.h:82
HttpReplyHeader * http_heaer_ptr
Definition: HttpChunkReader.h:83
virtual int readln(Client &client, uint8_t *str, int len, bool incl_nl=true)
Definition: HttpChunkReader.h:55
int available()
Definition: HttpChunkReader.h:73
virtual void readChunkLen(Client &client)
Definition: HttpChunkReader.h:99
We read a single line. A terminating 0 is added to the string to make it compliant for c string funct...
Definition: HttpLineReader.h:13
virtual int readlnInternal(Stream &client, uint8_t *str, int len, bool incl_nl=true)
Definition: HttpLineReader.h:18
void log(DlnaLogLevel current_level, const char *fmt...)
Print log message.
Definition: Logger.h:40
Definition: Allocator.h:6
@ DlnaDebug
Definition: Logger.h:16
LoggerClass DlnaLogger
Definition: Logger.cpp:5