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 vector. 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 vector. This is the common functionality for the HttpRequest and HttpReplyHeader subclasses.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ HttpHeader()
◆ ~HttpHeader()
◆ clear()
◆ crlf()
◆ end()
release static temp buffer
◆ get()
| const char * get |
( |
const char * |
key | ) |
|
|
inline |
◆ getHeaderLines()
Provides the http parameter lines.
◆ getMethod()
◆ headerLine()
◆ isChunked()
◆ isRedirectStatus()
| bool isRedirectStatus |
( |
| ) |
|
|
inline |
returns true if the status code is >=300 and < 400
◆ isValidStatus()
returns true if status code >=200 and < 300
◆ method()
◆ parse1stLine()
| virtual void parse1stLine |
( |
const char * |
line | ) |
|
|
protectedpure virtual |
◆ protocol()
| const char * protocol |
( |
| ) |
|
|
inline |
◆ put() [1/3]
| HttpHeader & put |
( |
const char * |
key, |
|
|
const char * |
value |
|
) |
| |
|
inline |
◆ put() [2/3]
adds a new line to the header - e.g. for content size
◆ put() [3/3]
adds a received new line to the header
◆ read()
reads the full header from the request (stream)
◆ readLine()
| int readLine |
( |
Client & |
in, |
|
|
char * |
str, |
|
|
int |
len |
|
) |
| |
|
inline |
◆ resize()
| bool resize |
( |
size_t |
bufferSize | ) |
|
|
inline |
Resizes the internal read buffer.
◆ setAutoCreateLines()
| void setAutoCreateLines |
( |
bool |
is_auto_line | ) |
|
|
inline |
automatically create new lines
◆ setProcessed()
◆ setProtocol()
| void setProtocol |
( |
const char * |
protocal | ) |
|
|
inline |
Defines the protocol: e.g. HTTP/1.1.
◆ setTimeout()
| void setTimeout |
( |
int |
timeoutMs | ) |
|
|
inline |
◆ statusCode()
◆ statusMessage()
| const char * statusMessage |
( |
| ) |
|
|
inline |
◆ tempBuffer()
◆ urlPath()
◆ write()
writes the full header to the indicated HttpStreamedMultiOutput stream
◆ write1stLine()
| virtual bool write1stLine |
( |
Client & |
out | ) |
|
|
protectedpure virtual |
◆ writeHeaderLine()
◆ create_new_lines
| bool create_new_lines = true |
|
protected |
◆ CRLF
| const char* CRLF = "\r\n" |
|
protected |
◆ is_chunked
◆ is_written
◆ lines
◆ method_id
◆ protocol_str
◆ reader
◆ status_code
◆ status_msg
◆ temp_buffer
◆ timeout_ms
◆ url_path
The documentation for this class was generated from the following file: