From f3fb377f456d8eb427c06709d9c7c1a5cfbac8f8 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 8 Dec 2014 11:55:25 +0900 Subject: [PATCH] Added the HTTP request headers for the WebSocket --- websocket-sharp/Net/HttpRequestHeader.cs | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/HttpRequestHeader.cs b/websocket-sharp/Net/HttpRequestHeader.cs index fc2d9293..08785db3 100644 --- a/websocket-sharp/Net/HttpRequestHeader.cs +++ b/websocket-sharp/Net/HttpRequestHeader.cs @@ -44,7 +44,8 @@ namespace WebSocketSharp.Net /// /// /// The HttpRequestHeader enumeration contains the HTTP request headers defined in - /// RFC 2616 for HTTP/1.1. + /// RFC 2616 for the HTTP/1.1 and + /// RFC 6455 for the WebSocket. /// public enum HttpRequestHeader { @@ -211,6 +212,22 @@ namespace WebSocketSharp.Net /// /// Indicates the User-Agent header. /// - UserAgent + UserAgent, + /// + /// Indicates the Sec-WebSocket-Key header. + /// + SecWebSocketKey, + /// + /// Indicates the Sec-WebSocket-Extensions header. + /// + SecWebSocketExtensions, + /// + /// Indicates the Sec-WebSocket-Protocol header. + /// + SecWebSocketProtocol, + /// + /// Indicates the Sec-WebSocket-Version header. + /// + SecWebSocketVersion } }