No Matches
Public Member Functions | List of all members
audio_tools::HttpRequestHeader Class Reference

Reading and writing of Http Requests. More...

#include <HttpHeader.h>

Inheritance diagram for audio_tools::HttpRequestHeader:

Public Member Functions

void parse1stLine (const char *line)
HttpHeadersetValues (MethodID id, const char *urlPath, const char *protocol=nullptr)
void write1stLine (Client &out)
- Public Member Functions inherited from audio_tools::HttpHeader
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
MethodID 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)
 reads the full header from the request (stream)
void readLine (Client &in, char *str, int len)
void setAutoCreateLines (bool is_auto_line)
 automatically create new lines
int statusCode ()
const char * statusMessage ()
const char * urlPath ()
void write (Client &out)
 writes the full header to the indicated HttpStreamedMultiOutput stream
void writeHeaderLine (Client &out, HttpHeaderLine *header)

Additional Inherited Members

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

Detailed Description

Reading and writing of Http Requests.

Phil Schatzmann

Member Function Documentation

◆ parse1stLine()

void audio_tools::HttpRequestHeader::parse1stLine ( const char *  line)

◆ write1stLine()

void audio_tools::HttpRequestHeader::write1stLine ( Client &  out)

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