76 references to Upgrade
CodeGenerator (2)
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
116HeaderNames.Upgrade, 293HeaderNames.Upgrade,
InMemory.FunctionalTests (2)
Http2\Http2StreamTests.cs (1)
5846response.Headers.Add(HeaderNames.Upgrade, "websocket");
Http3\Http3StreamTests.cs (1)
661response.Headers.Add(HeaderNames.Upgrade, "websocket");
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
236StringValues Upgrade { get => this[HeaderNames.Upgrade]; set => this[HeaderNames.Upgrade] = value; }
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingOptions.cs (2)
55HeaderNames.Upgrade, 90HeaderNames.Upgrade,
Microsoft.AspNetCore.HttpLogging.Tests (6)
HttpLoggingMiddlewareTests.cs (6)
1212httpContext.Response.Headers[HeaderNames.Connection] = HeaderNames.Upgrade; 1252httpContext.Request.Headers.Connection = HeaderNames.Upgrade; 1262httpContext.Response.Headers.Connection = HeaderNames.Upgrade; 1316httpContext.Response.Headers[HeaderNames.Connection] = HeaderNames.Upgrade; 1359httpContext.Response.Headers[HeaderNames.Connection] = HeaderNames.Upgrade; 1437httpContext.Response.Headers[HeaderNames.Connection] = HeaderNames.Upgrade;
Microsoft.AspNetCore.Server.HttpSys (8)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
30HeaderNames.Upgrade,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1117if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1337if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1585if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1902if (string.Equals(key, HeaderNames.Upgrade, StringComparison.Ordinal)) 2351yield return HeaderNames.Upgrade; 2687yield return new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, Upgrade); 2787HttpSysRequestHeader.Upgrade => HeaderNames.Upgrade,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
RequestHeaderTests.cs (1)
294yield return (HttpSysRequestHeader.Upgrade, HeaderNames.Upgrade);
Microsoft.AspNetCore.Server.IIS (8)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
30HeaderNames.Upgrade,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1117if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1337if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1585if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1902if (string.Equals(key, HeaderNames.Upgrade, StringComparison.Ordinal)) 2351yield return HeaderNames.Upgrade; 2687yield return new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, Upgrade); 2787HttpSysRequestHeader.Upgrade => HeaderNames.Upgrade,
Microsoft.AspNetCore.Server.Kestrel.Core (28)
Internal\Http\HttpHeaders.cs (1)
316private static readonly StringValues ConnectionValueUpgrade = HeaderNames.Upgrade;
Internal\Http\HttpHeaders.Generated.cs (26)
361HeaderNames.Upgrade, 2873if (ReferenceEquals(HeaderNames.Upgrade, key)) 2928if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 3798if (ReferenceEquals(HeaderNames.Upgrade, key)) 3835if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 4617if (ReferenceEquals(HeaderNames.Upgrade, key)) 4678if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 5724if (ReferenceEquals(HeaderNames.Upgrade, key)) 5785if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 7433array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _headers._Upgrade); 7637nameStr = HeaderNames.Upgrade; 8629_current = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _collection._headers._Upgrade); 9793ValidateHeaderValueCharacters(HeaderNames.Upgrade, value, EncodingSelector); 11073if (ReferenceEquals(HeaderNames.Upgrade, key)) 11119if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 11828if (ReferenceEquals(HeaderNames.Upgrade, key)) 11860if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 12485if (ReferenceEquals(HeaderNames.Upgrade, key)) 12537if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 13377if (ReferenceEquals(HeaderNames.Upgrade, key)) 13429if (HeaderNames.Upgrade.Equals(key, StringComparison.OrdinalIgnoreCase)) 14751array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _headers._Upgrade); 15452_current = new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, _collection._headers._Upgrade); 16919if (!TryGetUnknown(HeaderNames.Upgrade, ref value)) 16928ValidateHeaderValueCharacters(HeaderNames.Upgrade, value, EncodingSelector); 16929SetValueUnknown(HeaderNames.Upgrade, value);
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
285ResponseHeaders.Connection = HeaderNames.Upgrade;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
116HeaderNames.Upgrade, 293HeaderNames.Upgrade,
Microsoft.AspNetCore.Shared.Tests (8)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
30HeaderNames.Upgrade,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1117if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1337if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1585if (string.Equals(key, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 1902if (string.Equals(key, HeaderNames.Upgrade, StringComparison.Ordinal)) 2351yield return HeaderNames.Upgrade; 2687yield return new KeyValuePair<string, StringValues>(HeaderNames.Upgrade, Upgrade); 2787HttpSysRequestHeader.Upgrade => HeaderNames.Upgrade,
Microsoft.AspNetCore.TestHost (1)
WebSocketClient.cs (1)
80request.Headers.Add(HeaderNames.Upgrade, new string[] { "websocket" });
Microsoft.AspNetCore.WebSockets (4)
HandshakeHelpers.cs (1)
24responseHeaders.Connection = HeaderNames.Upgrade;
WebSocketMiddleware.cs (3)
241var values = requestHeaders.GetCommaSeparatedValues(HeaderNames.Upgrade); 264if (string.Equals(value, HeaderNames.Upgrade, StringComparison.OrdinalIgnoreCase)) 269requestHeaders.Connection = HeaderNames.Upgrade;
Microsoft.AspNetCore.WebSockets.Tests (2)
Http2WebSocketTests.cs (1)
53Assert.False(headers.TryGetValue(HeaderNames.Upgrade, out var _));
WebSocketMiddlewareTests.cs (1)
728Assert.Same(HeaderNames.Upgrade, context.Request.Headers.Connection.ToString());