HttpHeaderFields.h
Go to the documentation of this file.
35 XX(CONTENT_DISPOSITION, "Content-Disposition", "Additional information about how to process response payload") \
37 XX(CONTENT_LENGTH, "Content-Length", "Anticipated size for payload when not using transfer encoding") \
39 "Payload media type indicating both data format and intended manner of processing by recipient") \
40 XX(CONTENT_TRANSFER_ENCODING, "Content-Transfer-Encoding", "Coding method used in a MIME message body part") \
43 XX(EXPECT, "Expect", "Behaviours to be supported by the server in order to properly handle this request.") \
45 "Validates resource, such as a file, so recipient can confirm whether it has changed - generally more " \
49 "Request host and port information for target URI; allows server to service requests for multiple hosts on a " \
52 "Precondition check using ETag to avoid accidental overwrites when servicing multiple user requests. Ensures " \
55 XX(LAST_MODIFIED, "Last-Modified", "Server timestamp indicating date and time resource was last modified") \
57 XX(SEC_WEBSOCKET_ACCEPT, "Sec-WebSocket-Accept", "Server response to opening Websocket handshake") \
62 "Websocket opening request indicates supported protocol(s), response contains negotiated protocol(s)") \
64 XX(SET_COOKIE, "Set-Cookie", "Server may pass name/value pairs and associated metadata to user agent (client)") \
71 XX(WWW_AUTHENTICATE, "WWW-Authenticate", "Indicates HTTP authentication scheme(s) and applicable parameters")
81 #define XX(tag, str, comment) constexpr HttpHeaderFieldName HTTP_HEADER_##tag = HttpHeaderFieldName::tag;
120 field = static_cast<HttpHeaderFieldName>(unsigned(HTTP_HEADER_CUSTOM) + customFieldNames.count());
String toString(uint8_t value)
MimeType fromString(const char *str)
Get enumerated value for a MIME type string.
String toString(HttpHeaderFieldName name, const String &value) const
Definition: HttpHeaderFields.h:99
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:116
Definition: HttpHeaderFields.h:87
XX(tag, str, comment)
Class to manage a double null-terminated list of strings, such as "one\0two\0three\0".
Definition: CStringArray.h:21
1.8.13