HttpHeaders.h
Go to the documentation of this file.
43 XX(CONTENT_DISPOSITION, "Content-Disposition", "Additional information about how to process response payload") \
45 XX(CONTENT_LENGTH, "Content-Length", "Anticipated size for payload when not using transfer encoding") \
47 "Payload media type indicating both data format and intended manner of processing by recipient") \
48 XX(CONTENT_TRANSFER_ENCODING, "Content-Transfer-Encoding", "Coding method used in a MIME message body part") \
51 XX(EXPECT, "Expect", "Behaviours to be supported by the server in order to properly handle this request.") \
53 "Validates resource, such as a file, so recipient can confirm whether it has changed - generally more " \
57 "Request host and port information for target URI; allows server to service requests for multiple hosts on a " \
60 "Precondition check using ETag to avoid accidental overwrites when servicing multiple user requests. Ensures " \
63 XX(LAST_MODIFIED, "Last-Modified", "Server timestamp indicating date and time resource was last modified") \
65 XX(SEC_WEBSOCKET_ACCEPT, "Sec-WebSocket-Accept", "Server response to opening Websocket handshake") \
70 "Websocket opening request indicates supported protocol(s), response contains negotiated protocol(s)") \
72 XX(SET_COOKIE, "Set-Cookie", "Server may pass name/value pairs and associated metadata to user agent (client)") \
79 XX(WWW_AUTHENTICATE, "WWW-Authenticate", "Indicates HTTP authentication scheme(s) and applicable parameters")
HttpHeaderFieldName fromString(const String &name) const
Find the enumerated value for the given field name string.
const HttpHeaderFieldName & keyAt(unsigned int idx) const
Definition: WHashMap.h:88
bool add(const char *str, int length=-1)
Append a new string (or array of strings) to the end of the array.
String operator[](unsigned index) const
Return the HTTP header line for the value at the given index.
Definition: HttpHeaders.h:163
String toString(HttpHeaderFieldName name, const String &value) const
Definition: HttpHeaders.h:115
String & operator[](const String &name)
Fetch a reference to the header field value by name.
Definition: HttpHeaders.h:148
const String & valueAt(unsigned int idx) const
Definition: WHashMap.h:113
const String & operator[](const String &name) const
Fetch a reference to the header field value by name.
Definition: HttpHeaders.h:134
HttpHeaders & operator=(const HttpHeaders &headers)
Definition: HttpHeaders.h:191
Definition: HttpHeaders.h:82
HttpHeaders()=default
String toString(HttpHeaderFieldName name) const
Class to manage a double null-terminated list of strings, such as "one\0two\0three\0".
Definition: CStringArray.h:21
bool fromHttpDate(const String &httpDate)
Parse a HTTP full date and set time and date.
Definition: HttpHeaders.h:86