Arduino DLNA Server
|
Reading and Writing of Http Replys. More...
#include <HttpHeader.h>
Public Member Functions | |
void | setValues (int statusCode, const char *msg="", const char *protocol=nullptr) |
void | readExt (Client &in) |
void | write1stLine (Client &out) |
void | parse1stLine (const char *line) |
Public Member Functions inherited from tiny_dlna::HttpHeader | |
HttpHeader () | |
~HttpHeader () | |
HttpHeader & | clear (bool activeFlag=true) |
clears the data - usually we do not delete but we just set the active flag More... | |
HttpHeader & | put (const char *key, const char *value) |
HttpHeader & | put (const char *key, int value) |
adds a new line to the header - e.g. for content size More... | |
HttpHeader & | put (const char *line) |
adds a received new line to the header More... | |
const char * | get (const char *key) |
void | readLine (Client &in, char *str, int len) |
void | writeHeaderLine (Client &out, HttpHeaderLine *header) |
const char * | urlPath () |
const char * | protocol () |
TinyMethodID | method () |
const char * | accept () |
int | statusCode () |
const char * | statusMessage () |
bool | isChunked () |
void | read (Client &in) |
void | write (Client &out) |
void | setAutoCreateLines (bool is_auto_line) |
bool | isValidStatus () |
returns true if status code >=200 and < 300 More... | |
bool | isRedirectStatus () |
Additional Inherited Members | |
Protected Member Functions inherited from tiny_dlna::HttpHeader | |
void | crlf (Client &out) |
HttpHeaderLine * | headerLine (const char *key) |
TinyMethodID | getMethod (const char *line) |
Protected Attributes inherited from tiny_dlna::HttpHeader | |
int | status_code = T_UNDEFINED |
bool | is_written = false |
bool | is_chunked = false |
bool | create_new_lines = true |
TinyMethodID | method_id |
Str | protocol_str = Str(10) |
Str | url_path = Str(70) |
Str | status_msg = Str(20) |
List< HttpHeaderLine * > | lines |
HttpLineReader | reader |
const char * | CRLF = "\r\n" |
Reading and Writing of Http Replys.
|
inlinevirtual |
Implements tiny_dlna::HttpHeader.
|
inline |
|
inline |
|
inlinevirtual |
Implements tiny_dlna::HttpHeader.