BasicHttpHeaders.h
String toString() const
Return a String in the form "name: value\r\n".
Definition: BasicHttpHeaders.h:47
Parse array of name/value pairs as references to original data.
Definition: BasicHttpHeaders.h:23
Definition: BasicHttpHeaders.h:40
String toString(HttpHeaderFieldName name) const
HttpError parse(char *data, size_t len, http_parser_type type=HTTP_BOTH)
Parse header data into name/value pairs.
HttpStatus status() const
Obtain response status.
Definition: BasicHttpHeaders.h:154
http_parser_type type() const
Get the type of message parsed.
Definition: BasicHttpHeaders.h:133
Definition: HttpHeaderFields.h:98
unsigned contentLength() const
Obtain content length field value.
Definition: BasicHttpHeaders.h:162
HttpMethod method() const
Obtain request method.
Definition: BasicHttpHeaders.h:141
const Header & operator[](unsigned i) const
Definition: BasicHttpHeaders.h:87
HttpMethod
Strongly-typed enum which shadows http_method from http_parser library.
Definition: HttpCommon.h:42
unsigned count() const
Get number of parsed headers.
Definition: BasicHttpHeaders.h:102