69 {
72 {
73 new global::Interop.WebSocket.HttpHeader
74 {
76 NameLength = (uint)"Connection".Length,
77 Value = "Upgrade",
78 ValueLength = (uint)"Upgrade".Length
79 },
80 new global::Interop.WebSocket.HttpHeader
81 {
83 NameLength = (uint)"Upgrade".Length,
84 Value = "websocket",
85 ValueLength = (uint)"websocket".Length
86 }
87 };
90 {
93 {
94 new global::Interop.WebSocket.HttpHeader
95 {
97 NameLength = (uint)"Connection".Length,
98 Value = "Upgrade",
99 ValueLength = (uint)"Upgrade".Length
100 },
101 new global::Interop.WebSocket.HttpHeader
102 {
104 NameLength = (uint)"Upgrade".Length,
105 Value = "websocket",
106 ValueLength = (uint)"websocket".Length
107 },
108 new global::Interop.WebSocket.HttpHeader
109 {
111 NameLength = (uint)"Host".Length,
112 Value =
string.
Empty,
113 ValueLength = 0u
114 },
115 new global::Interop.WebSocket.HttpHeader
116 {
117 Name =
"Sec-WebSocket-Version",
118 NameLength = (uint)"Sec-WebSocket-Version".Length,
120 ValueLength = (uint)s_supportedVersion.Length
121 },
122 new global::Interop.WebSocket.HttpHeader
123 {
124 Name =
"Sec-WebSocket-Key",
125 NameLength = (uint)"Sec-WebSocket-Key".Length,
127 ValueLength = (uint)s_dummyWebsocketKeyBase64.Length
128 }
129 };
130 }
131 }
static readonly global::Interop.WebSocket.HttpHeader[] s_initialClientRequestHeaders
static readonly IntPtr s_webSocketDllHandle
static string GetSupportedVersion()
static readonly string s_supportedVersion
static readonly string s_dummyWebsocketKeyBase64
static readonly global::Interop.WebSocket.HttpHeader[] s_ServerFakeRequestHeaders