Adding WebSocket headers to HttpHeader

This commit is contained in:
Joakim Erdfelt 2015-10-14 11:14:12 -07:00
parent 14b638f8f7
commit 45de46191b
1 changed files with 10 additions and 1 deletions

View File

@ -100,6 +100,15 @@ public enum HttpHeader
VARY("Vary"),
WWW_AUTHENTICATE("WWW-Authenticate"),
/* ------------------------------------------------------------ */
/** WebSocket Fields.
*/
SEC_WEBSOCKET_KEY("Sec-WebSocket-Key"),
SEC_WEBSOCKET_VERSION("Sec-WebSocket-Version"),
SEC_WEBSOCKET_EXTENSIONS("Sec-WebSocket-Extensions"),
SEC_WEBSOCKET_SUBPROTOCOL("Sec-WebSocket-Protocol"),
SEC_WEBSOCKET_ACCEPT("Sec-WebSocket-Accept"),
/* ------------------------------------------------------------ */
/** Other Fields.
*/
@ -125,7 +134,7 @@ public enum HttpHeader
/* ------------------------------------------------------------ */
public final static Trie<HttpHeader> CACHE= new ArrayTrie<>(530);
public final static Trie<HttpHeader> CACHE= new ArrayTrie<>(630);
static
{
for (HttpHeader header : HttpHeader.values())