Arduino DLNA Server
Public Member Functions | List of all members
tiny_dlna::HttpReplyHeader Class Reference

Reading and Writing of Http Replys. More...

#include <HttpHeader.h>

Inheritance diagram for tiny_dlna::HttpReplyHeader:
Inheritance graph
[legend]
Collaboration diagram for tiny_dlna::HttpReplyHeader:
Collaboration graph
[legend]

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 ()
 
HttpHeaderclear (bool activeFlag=true)
 clears the data - usually we do not delete but we just set the active flag More...
 
HttpHeaderput (const char *key, const char *value)
 
HttpHeaderput (const char *key, int value)
 adds a new line to the header - e.g. for content size More...
 
HttpHeaderput (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)
 
HttpHeaderLineheaderLine (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"
 

Detailed Description

Reading and Writing of Http Replys.

Member Function Documentation

◆ parse1stLine()

void tiny_dlna::HttpReplyHeader::parse1stLine ( const char *  line)
inlinevirtual

Implements tiny_dlna::HttpHeader.

◆ readExt()

void tiny_dlna::HttpReplyHeader::readExt ( Client &  in)
inline

◆ setValues()

void tiny_dlna::HttpReplyHeader::setValues ( int  statusCode,
const char *  msg = "",
const char *  protocol = nullptr 
)
inline

◆ write1stLine()

void tiny_dlna::HttpReplyHeader::write1stLine ( Client &  out)
inlinevirtual

Implements tiny_dlna::HttpHeader.


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