In a http request and reply we need to process header information. With this API we can define and query the header information. The individual header lines are stored in a list. This is the common functionality for the HttpRequest and HttpReplyHeader subclasses.
More...
#include <HttpHeader.h>
In a http request and reply we need to process header information. With this API we can define and query the header information. The individual header lines are stored in a list. This is the common functionality for the HttpRequest and HttpReplyHeader subclasses.
◆ HttpHeader()
tiny_dlna::HttpHeader::HttpHeader |
( |
| ) |
|
|
inline |
◆ ~HttpHeader()
tiny_dlna::HttpHeader::~HttpHeader |
( |
| ) |
|
|
inline |
◆ accept()
const char* tiny_dlna::HttpHeader::accept |
( |
| ) |
|
|
inline |
◆ clear()
HttpHeader& tiny_dlna::HttpHeader::clear |
( |
bool |
activeFlag = true | ) |
|
|
inline |
clears the data - usually we do not delete but we just set the active flag
◆ crlf()
void tiny_dlna::HttpHeader::crlf |
( |
Client & |
out | ) |
|
|
inlineprotected |
◆ get()
const char* tiny_dlna::HttpHeader::get |
( |
const char * |
key | ) |
|
|
inline |
◆ getMethod()
TinyMethodID tiny_dlna::HttpHeader::getMethod |
( |
const char * |
line | ) |
|
|
inlineprotected |
◆ headerLine()
◆ isChunked()
bool tiny_dlna::HttpHeader::isChunked |
( |
| ) |
|
|
inline |
◆ isRedirectStatus()
bool tiny_dlna::HttpHeader::isRedirectStatus |
( |
| ) |
|
|
inline |
◆ isValidStatus()
bool tiny_dlna::HttpHeader::isValidStatus |
( |
| ) |
|
|
inline |
returns true if status code >=200 and < 300
◆ method()
◆ parse1stLine()
virtual void tiny_dlna::HttpHeader::parse1stLine |
( |
const char * |
line | ) |
|
|
protectedpure virtual |
◆ protocol()
const char* tiny_dlna::HttpHeader::protocol |
( |
| ) |
|
|
inline |
◆ put() [1/3]
HttpHeader& tiny_dlna::HttpHeader::put |
( |
const char * |
key, |
|
|
const char * |
value |
|
) |
| |
|
inline |
◆ put() [2/3]
HttpHeader& tiny_dlna::HttpHeader::put |
( |
const char * |
key, |
|
|
int |
value |
|
) |
| |
|
inline |
adds a new line to the header - e.g. for content size
◆ put() [3/3]
HttpHeader& tiny_dlna::HttpHeader::put |
( |
const char * |
line | ) |
|
|
inline |
adds a received new line to the header
◆ read()
void tiny_dlna::HttpHeader::read |
( |
Client & |
in | ) |
|
|
inline |
◆ readLine()
void tiny_dlna::HttpHeader::readLine |
( |
Client & |
in, |
|
|
char * |
str, |
|
|
int |
len |
|
) |
| |
|
inline |
◆ setAutoCreateLines()
void tiny_dlna::HttpHeader::setAutoCreateLines |
( |
bool |
is_auto_line | ) |
|
|
inline |
◆ statusCode()
int tiny_dlna::HttpHeader::statusCode |
( |
| ) |
|
|
inline |
◆ statusMessage()
const char* tiny_dlna::HttpHeader::statusMessage |
( |
| ) |
|
|
inline |
◆ urlPath()
const char* tiny_dlna::HttpHeader::urlPath |
( |
| ) |
|
|
inline |
◆ write()
void tiny_dlna::HttpHeader::write |
( |
Client & |
out | ) |
|
|
inline |
◆ write1stLine()
virtual void tiny_dlna::HttpHeader::write1stLine |
( |
Client & |
out | ) |
|
|
protectedpure virtual |
◆ writeHeaderLine()
void tiny_dlna::HttpHeader::writeHeaderLine |
( |
Client & |
out, |
|
|
HttpHeaderLine * |
header |
|
) |
| |
|
inline |
◆ create_new_lines
bool tiny_dlna::HttpHeader::create_new_lines = true |
|
protected |
◆ CRLF
const char* tiny_dlna::HttpHeader::CRLF = "\r\n" |
|
protected |
◆ is_chunked
bool tiny_dlna::HttpHeader::is_chunked = false |
|
protected |
◆ is_written
bool tiny_dlna::HttpHeader::is_written = false |
|
protected |
◆ lines
◆ method_id
◆ protocol_str
Str tiny_dlna::HttpHeader::protocol_str = Str(10) |
|
protected |
◆ reader
◆ status_code
◆ status_msg
Str tiny_dlna::HttpHeader::status_msg = Str(20) |
|
protected |
◆ url_path
Str tiny_dlna::HttpHeader::url_path = Str(70) |
|
protected |
The documentation for this class was generated from the following file: