HttpHeaders.h
Go to the documentation of this file.
bool fromHttpDate(const String &httpDate)
Parse a HTTP full date and set time and date.
Definition: WHashMap.h:111
const String & valueAt(unsigned int idx) const
Definition: WHashMap.h:249
const HttpHeaderFieldName & keyAt(unsigned int idx) const
Definition: WHashMap.h:224
Definition: HttpHeaderFields.h:99
HttpHeaderFieldName fromString(const String &name) const
Find the enumerated value for the given field name string.
HttpHeaderFieldName findOrCreate(const String &name)
Find the enumerated value for the given field name string, create a custom entry if not found.
Definition: HttpHeaderFields.h:138
String toString(HttpHeaderFieldName name) const
Definition: HttpHeaders.h:38
size_t printTo(Print &p) const
String getFieldName() const
HeaderConst(const HttpHeaderFields &fields, const HttpHeaderFieldName &key, const String &value)
Definition: HttpHeaders.h:40
Definition: HttpHeaders.h:54
Iterator(const HttpHeaders &headers, unsigned index)
Definition: HttpHeaders.h:56
HttpHeaders()=default
bool append(const HttpHeaderFieldName &name, const String &value)
Append value to multi-value field.
bool contains(const String &name) const
Determine if given header field is present.
Definition: HttpHeaders.h:131
String operator[](const BaseElement< is_const > &elem) const
Definition: HttpHeaders.h:121
HttpHeaders & operator=(const HttpHeaders &headers)
Definition: HttpHeaders.h:153
const String & operator[](const String &name) const
Fetch a reference to the header field value by name.
String operator[](unsigned index) const
Return the HTTP header line for the value at the given index.
Definition: HttpHeaders.h:116
String & operator[](const String &name)
Fetch a reference to the header field value by name.
Definition: HttpHeaders.h:106
void setMultiple(const HttpHeaders &headers)