|
HttpHeader & | clear () |
| clears the data
|
|
const char * | get (const char *key) |
|
bool | isChunked () |
|
bool | isRedirectStatus () |
| returns true if the status code is >=300 and < 400
|
|
bool | isValidStatus () |
| returns true if status code >=200 and < 300
|
|
MethodID | method () |
|
void | parse1stLine (const char *line) |
|
const char * | protocol () |
| Provide the protocol.
|
|
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
|
|
HttpHeader & | put (const char *line) |
| adds a received new line to the header
|
|
bool | read (Client &in) |
| reads the full header from the request (stream)
|
|
int | readLine (Client &in, char *str, int len) |
|
void | setAutoCreateLines (bool is_auto_line) |
| automatically create new lines
|
|
void | setProcessed () |
|
void | setProtocol (const char *protocal) |
| Defines the protocol: e.g. HTTP/1.1.
|
|
void | setTimeout (int timeoutMs) |
| Set the timout.
|
|
HttpHeader & | setValues (MethodID id, const char *urlPath, const char *protocol=nullptr) |
|
int | statusCode () |
|
const char * | statusMessage () |
|
const char * | urlPath () |
|
void | write (Client &out) |
| writes the full header to the indicated HttpStreamedMultiOutput stream
|
|
void | write1stLine (Client &out) |
|
void | writeHeaderLine (Client &out, HttpHeaderLine &header) |
|
Reading and writing of Http Requests.
- Author
- Phil Schatzmann
- Copyright
- GPLv3