From 9fb42cf86fab281beee8a80c946c10ad350a82f7 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 11 Aug 2018 22:23:56 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Server/WebSocketBehavior.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/websocket-sharp/Server/WebSocketBehavior.cs b/websocket-sharp/Server/WebSocketBehavior.cs index a4664573..ca94017f 100644 --- a/websocket-sharp/Server/WebSocketBehavior.cs +++ b/websocket-sharp/Server/WebSocketBehavior.cs @@ -27,6 +27,7 @@ #endregion using System; +using System.Collections.Specialized; using System.IO; using WebSocketSharp.Net; using WebSocketSharp.Net.WebSockets; @@ -72,6 +73,23 @@ namespace WebSocketSharp.Server #region Protected Properties + /// + /// Gets the HTTP headers included in a WebSocket handshake request. + /// + /// + /// + /// A that contains the headers. + /// + /// + /// if the session has not started yet. + /// + /// + protected NameValueCollection Headers { + get { + return _context != null ? _context.Headers : null; + } + } + /// /// Gets the logging function. ///