Skip to content

Change WebSocket handshake implementation to align with the .NET approach #5740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/Strings.resx
Original file line number Diff line number Diff line change
@@ -363,4 +363,19 @@
<data name="WebSocketInvalidProtocolNotInClientList" xml:space="preserve">
<value>The subprotocol '{0}' was not requested by the client. The client requested the following subprotocol(s): '{1}'.</value>
</data>
<data name="net_WebSockets_AcceptUnsupportedProtocol" xml:space="preserve">
<value>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</value>
</data>
<data name="net_webstatus_ConnectFailure" xml:space="preserve">
<value>Unable to connect to the remote server</value>
</data>
<data name="net_WebSockets_ConnectStatusExpected" xml:space="preserve">
<value>The server returned status code '{0}' when status code '{1}' was expected.</value>
</data>
<data name="net_WebSockets_MissingResponseHeader" xml:space="preserve">
<value>The server's response was missing the required header '{0}'.</value>
</data>
<data name="net_WebSockets_InvalidResponseHeader" xml:space="preserve">
<value>The '{0}' header value '{1}' is invalid.</value>
</data>
</root>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.cs.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">Server nepřijal žádost o připojení. Verze protokolu WebSocket na straně klienta se pravděpodobně neshoduje s nastavením na straně serveru ({0}).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.de.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">Der Server hat die Verbindungsanforderung nicht akzeptiert. Möglicherweise stimmt die Version des WebSocket-Protokolls auf dem Client nicht mit der auf dem Server ("{0}") überein.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.es.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">El servidor no aceptó la solicitud de conexión. Es posible que la versión del subprotocolo WebSocket de su cliente no coincida con el del servidor ("{0}").</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.fr.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">Le serveur a refusé la demande de connexion. Il est possible que la version du protocole WebSocket sur votre client ne corresponde pas à la version située sur le serveur ('{0}').</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.it.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">Il server non ha accettato la richiesta di connessione. È possibile che la versione del protocollo WebSocket nel client non corrisponda a quella nel server ('{0}').</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.ja.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">サーバーが接続要求を受け入れませんでした。クライアントの WebSocket プロトコルのバージョンが、サーバー ('{0}') のものと一致していない可能性があります。</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.ko.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">서버에서 연결 요청을 수락하지 않았습니다. 클라이언트의 WebSocket 프로토콜 버전이 서버의 프로토콜 버전('{0}')과 일치하지 않을 수 있습니다.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.pl.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">Serwer nie zaakceptował żądania połączenia. Być może wersja protokołu WebSocket używana przez klienta jest niezgodna z wersją używaną przez serwer („{0}”).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.pt-BR.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">O servidor não aceitou a solicitação de conexão. É possível que a versão do protocolo WebSocket no cliente não corresponda à versão no servidor ('{0}').</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.ru.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">Сервер не принял запрос на подключение. Возможно, версия протокола WebSocket на клиенте не согласуется с таковой на сервере ("{0}").</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.tr.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">Sunucu, bağlantı isteğini kabul etmedi. İstemciniz üzerindeki WebSocket protokol sürümü, sunucudaki ('{0}') ile eşleşmiyor olabilir.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.zh-Hans.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">服务器不接受连接请求。有可能是因为客户端上 WebSocket 协议的版本与服务器上该协议的版本({0})不匹配。</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>
25 changes: 25 additions & 0 deletions src/System.ServiceModel.Http/src/Resources/xlf/Strings.zh-Hant.xlf
Original file line number Diff line number Diff line change
@@ -412,6 +412,31 @@
<target state="translated">伺服器未接受連線要求。可能是用戶端的 WebSocket 通訊協定版本與伺服器的版本 ('{0}') 不符。</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_AcceptUnsupportedProtocol">
<source>The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</source>
<target state="new">The WebSocket client request requested '{0}' protocol(s), but server is only accepting '{1}' protocol(s).</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_ConnectStatusExpected">
<source>The server returned status code '{0}' when status code '{1}' was expected.</source>
<target state="new">The server returned status code '{0}' when status code '{1}' was expected.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_InvalidResponseHeader">
<source>The '{0}' header value '{1}' is invalid.</source>
<target state="new">The '{0}' header value '{1}' is invalid.</target>
<note />
</trans-unit>
<trans-unit id="net_WebSockets_MissingResponseHeader">
<source>The server's response was missing the required header '{0}'.</source>
<target state="new">The server's response was missing the required header '{0}'.</target>
<note />
</trans-unit>
<trans-unit id="net_webstatus_ConnectFailure">
<source>Unable to connect to the remote server</source>
<target state="new">Unable to connect to the remote server</target>
<note />
</trans-unit>
</body>
</file>
</xliff>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace System.ServiceModel.Channels
{
internal static partial class HttpKnownHeaderNames
{
public const string Accept = "Accept";
public const string AcceptCharset = "Accept-Charset";
public const string AcceptEncoding = "Accept-Encoding";
public const string AcceptLanguage = "Accept-Language";
public const string AcceptPatch = "Accept-Patch";
public const string AcceptRanges = "Accept-Ranges";
public const string AccessControlAllowCredentials = "Access-Control-Allow-Credentials";
public const string AccessControlAllowHeaders = "Access-Control-Allow-Headers";
public const string AccessControlAllowMethods = "Access-Control-Allow-Methods";
public const string AccessControlAllowOrigin = "Access-Control-Allow-Origin";
public const string AccessControlExposeHeaders = "Access-Control-Expose-Headers";
public const string AccessControlMaxAge = "Access-Control-Max-Age";
public const string Age = "Age";
public const string Allow = "Allow";
public const string AltSvc = "Alt-Svc";
public const string Authorization = "Authorization";
public const string CacheControl = "Cache-Control";
public const string Connection = "Connection";
public const string ContentDisposition = "Content-Disposition";
public const string ContentEncoding = "Content-Encoding";
public const string ContentLanguage = "Content-Language";
public const string ContentLength = "Content-Length";
public const string ContentLocation = "Content-Location";
public const string ContentMD5 = "Content-MD5";
public const string ContentRange = "Content-Range";
public const string ContentSecurityPolicy = "Content-Security-Policy";
public const string ContentType = "Content-Type";
public const string Cookie = "Cookie";
public const string Cookie2 = "Cookie2";
public const string Date = "Date";
public const string ETag = "ETag";
public const string Expect = "Expect";
public const string Expires = "Expires";
public const string From = "From";
public const string Host = "Host";
public const string IfMatch = "If-Match";
public const string IfModifiedSince = "If-Modified-Since";
public const string IfNoneMatch = "If-None-Match";
public const string IfRange = "If-Range";
public const string IfUnmodifiedSince = "If-Unmodified-Since";
public const string KeepAlive = "Keep-Alive";
public const string LastModified = "Last-Modified";
public const string Link = "Link";
public const string Location = "Location";
public const string MaxForwards = "Max-Forwards";
public const string Origin = "Origin";
public const string P3P = "P3P";
public const string Pragma = "Pragma";
public const string ProxyAuthenticate = "Proxy-Authenticate";
public const string ProxyAuthorization = "Proxy-Authorization";
public const string ProxyConnection = "Proxy-Connection";
public const string PublicKeyPins = "Public-Key-Pins";
public const string Range = "Range";
public const string Referer = "Referer"; // NB: The spelling-mistake "Referer" for "Referrer" must be matched.
public const string RetryAfter = "Retry-After";
public const string SecWebSocketAccept = "Sec-WebSocket-Accept";
public const string SecWebSocketExtensions = "Sec-WebSocket-Extensions";
public const string SecWebSocketKey = "Sec-WebSocket-Key";
public const string SecWebSocketProtocol = "Sec-WebSocket-Protocol";
public const string SecWebSocketVersion = "Sec-WebSocket-Version";
public const string Server = "Server";
public const string SetCookie = "Set-Cookie";
public const string SetCookie2 = "Set-Cookie2";
public const string StrictTransportSecurity = "Strict-Transport-Security";
public const string TE = "TE";
public const string TSV = "TSV";
public const string Trailer = "Trailer";
public const string TransferEncoding = "Transfer-Encoding";
public const string Upgrade = "Upgrade";
public const string UpgradeInsecureRequests = "Upgrade-Insecure-Requests";
public const string UserAgent = "User-Agent";
public const string Vary = "Vary";
public const string Via = "Via";
public const string WWWAuthenticate = "WWW-Authenticate";
public const string Warning = "Warning";
public const string XAspNetVersion = "X-AspNet-Version";
public const string XContentDuration = "X-Content-Duration";
public const string XContentTypeOptions = "X-Content-Type-Options";
public const string XFrameOptions = "X-Frame-Options";
public const string XMSEdgeRef = "X-MSEdge-Ref";
public const string XPoweredBy = "X-Powered-By";
public const string XRequestID = "X-Request-ID";
public const string XUACompatible = "X-UA-Compatible";
}
}