tinyhttp
Public Member Functions | List of all members
tinyhttp::HttpRequestHeader Class Reference

Reading and writing of Http Requests. More...

#include <HttpHeader.h>

Inheritance diagram for tinyhttp::HttpRequestHeader:
tinyhttp::HttpHeader

Public Member Functions

void parse1stLine (const char *line)
 
HttpHeadersetValues (TinyMethodID id, const char *urlPath, const char *protocol=nullptr)
 
void write1stLine (Client &out)
 
- Public Member Functions inherited from tinyhttp::HttpHeader
const char * accept ()
 
HttpHeaderclear (bool activeFlag=true)
 clears the data - usually we do not delete but we just set the active flag
 
const char * get (const char *key)
 
bool isChunked ()
 
bool isRedirectStatus ()
 
bool isValidStatus ()
 returns true if status code >=200 and < 300
 
TinyMethodID method ()
 
const char * protocol ()
 
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
 
HttpHeaderput (const char *line)
 adds a received new line to the header
 
void read (Client &in)
 
void readLine (Client &in, char *str, int len)
 
void setAutoCreateLines (bool is_auto_line)
 
int statusCode ()
 
const char * statusMessage ()
 
const char * urlPath ()
 
void write (Client &out)
 
void writeHeaderLine (Client &out, HttpHeaderLine *header)
 

Additional Inherited Members

- Protected Member Functions inherited from tinyhttp::HttpHeader
void crlf (Client &out)
 
TinyMethodID getMethod (const char *line)
 
HttpHeaderLineheaderLine (const char *key)
 
- Protected Attributes inherited from tinyhttp::HttpHeader
bool create_new_lines = true
 
const char * CRLF = "\r\n"
 
bool is_chunked = false
 
bool is_written = false
 
List< HttpHeaderLine * > lines
 
TinyMethodID method_id
 
StrExt protocol_str = StrExt(10)
 
HttpLineReader reader
 
int status_code = T_UNDEFINED
 
StrExt status_msg = StrExt(20)
 
StrExt url_path = StrExt(70)
 

Detailed Description

Reading and writing of Http Requests.


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