Class WebSocketHttpContext
- Namespace
- Alis.Core.Network
- Assembly
- Alis.dll
The WebSocket HTTP Context used to initiate a WebSocket handshake
public class WebSocketHttpContextInheritance
Inherited Members
Constructors
WebSocketHttpContext(bool, IList<string>, string, string, Stream)
Initialises a new instance of the WebSocketHttpContext class
public WebSocketHttpContext(bool isWebSocketRequest, IList<string> webSocketRequestedProtocols, string httpHeader, string path, Stream stream)Parameters
isWebSocketRequestbool-
True if this is a valid WebSocket request
webSocketRequestedProtocolsIList<string>httpHeaderstring-
The raw http header extracted from the stream
pathstring-
The Path extracted from the http header
streamStream-
The stream AFTER the header has already been read
Properties
HttpHeader
The raw http header extracted from the stream
public string HttpHeader { get; }Property Value
IsWebSocketRequest
True if this is a valid WebSocket request
public bool IsWebSocketRequest { get; }Property Value
Path
The Path extracted from the http header
public string Path { get; }Property Value
Stream
The stream AFTER the header has already been read
public Stream Stream { get; }Property Value
WebSocketRequestedProtocols
Gets the value of the web socket requested protocols
public IList<string> WebSocketRequestedProtocols { get; }