HttpHeaderFields.h
Go to the documentation of this file.
42 XX(CONTENT_DISPOSITION, "Content-Disposition", 0, "Additional information about how to process response payload") \
44 XX(CONTENT_LENGTH, "Content-Length", 0, "Anticipated size for payload when not using transfer encoding") \
46 "Payload media type indicating both data format and intended manner of processing by recipient") \
47 XX(CONTENT_TRANSFER_ENCODING, "Content-Transfer-Encoding", 0, "Coding method used in a MIME message body part") \
48 XX(CACHE_CONTROL, "Cache-Control", 0, "Directives for caches along the request/response chain") \
50 XX(EXPECT, "Expect", 0, "Behaviours to be supported by the server in order to properly handle this request.") \
52 "Validates resource, such as a file, so recipient can confirm whether it has changed - generally more " \
56 "Request host and port information for target URI; allows server to service requests for multiple hosts on a " \
59 "Precondition check using ETag to avoid accidental overwrites when servicing multiple user requests. Ensures " \
62 XX(LAST_MODIFIED, "Last-Modified", 0, "Server timestamp indicating date and time resource was last modified") \
64 XX(SEC_WEBSOCKET_ACCEPT, "Sec-WebSocket-Accept", 0, "Server response to opening Websocket handshake") \
69 "Websocket opening request indicates supported protocol(s), response contains negotiated protocol(s)") \
92 #define XX(tag, str, flags, comment) constexpr HttpHeaderFieldName HTTP_HEADER_##tag = HttpHeaderFieldName::tag;
142 field = static_cast<HttpHeaderFieldName>(unsigned(HTTP_HEADER_CUSTOM) + customFieldNames.count());
bool add(const char *str, int length=-1)
Append a new string (or array of strings) to the end of the array.
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
@ UNKNOWN
String toString(HttpHeaderFieldName name) const
Flags getFlags(HttpHeaderFieldName name) const
Get flags (if any) for given header field.
XX(tag, str, flags, comment)
Flag
Flag values providing additional information about header fields.
Definition: HttpHeaderFields.h:104
Definition: HttpHeaderFields.h:98
HttpHeaderFieldName fromString(const String &name) const
Find the enumerated value for the given field name string.
Class to manage a double null-terminated list of strings, such as "one\0two\0three\0".
Definition: CStringArray.h:21
@ CUSTOM