100 references to Connection
CodeGenerator (9)
src\Servers\Kestrel\shared\KnownHeaders.cs (9)
28HeaderNames.Connection, 95HeaderNames.Connection, 101HeaderNames.Connection, 110HeaderNames.Connection, 131HeaderNames.Connection, 199HeaderNames.Connection, 207HeaderNames.Connection, 290HeaderNames.Connection, 869public {(header.Name == HeaderNames.Connection ? "override " : "")}StringValues Header{header.Identifier}
IIS.FunctionalTests (1)
Http2TrailersResetTests.cs (1)
265Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection));
InMemory.FunctionalTests (2)
Http2\Http2StreamTests.cs (1)
5847response.Headers.Add(HeaderNames.Connection, "Keep-Alive");
Http3\Http3StreamTests.cs (1)
662response.Headers.Add(HeaderNames.Connection, "Keep-Alive");
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
68StringValues Connection { get => this[HeaderNames.Connection]; set => this[HeaderNames.Connection] = value; }
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingOptions.cs (2)
40HeaderNames.Connection, 77HeaderNames.Connection,
Microsoft.AspNetCore.HttpLogging.Tests (4)
HttpLoggingMiddlewareTests.cs (4)
1212httpContext.Response.Headers[HeaderNames.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.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
416HeaderNames.Connection,
Microsoft.AspNetCore.Rewrite (2)
ApacheModRewrite\ServerVariables.cs (1)
36return new HeaderSegment(HeaderNames.Connection);
IISUrlRewrite\ServerVariables.cs (1)
55managedVariableThunk = () => new HeaderSegment(HeaderNames.Connection);
Microsoft.AspNetCore.Server.HttpSys (12)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
751Response.Headers[HeaderNames.Connection] = "close";
RequestProcessing\Response.cs (3)
391var requestConnectionString = Request.Headers[HeaderNames.Connection]; 398var responseConnectionString = Headers[HeaderNames.Connection]; 468Headers.Append(HeaderNames.Connection, Constants.Close);
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
24HeaderNames.Connection,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1143if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1368if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1616if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1958if (string.Equals(key, HeaderNames.Connection, StringComparison.Ordinal)) 2231yield return HeaderNames.Connection; 2567yield return new KeyValuePair<string, StringValues>(HeaderNames.Connection, Connection); 2757HttpSysRequestHeader.Connection => HeaderNames.Connection,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (8)
Http2Tests.cs (7)
340Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 351Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 387Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 426Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 466Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 483Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection)); 502Assert.False(decodedHeaders.ContainsKey(HeaderNames.Connection));
RequestHeaderTests.cs (1)
288yield return (HttpSysRequestHeader.Connection, HeaderNames.Connection);
Microsoft.AspNetCore.Server.IIS (9)
Core\IISHttpContext.cs (1)
578if (string.Equals(ConnectionClose, HttpResponseHeaders[HeaderNames.Connection], StringComparison.OrdinalIgnoreCase))
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
24HeaderNames.Connection,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1143if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1368if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1616if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1958if (string.Equals(key, HeaderNames.Connection, StringComparison.Ordinal)) 2231yield return HeaderNames.Connection; 2567yield return new KeyValuePair<string, StringValues>(HeaderNames.Connection, Connection); 2757HttpSysRequestHeader.Connection => HeaderNames.Connection,
Microsoft.AspNetCore.Server.Kestrel.Core (27)
Internal\Http\HttpHeaders.Generated.cs (27)
303HeaderNames.Connection, 3050if (ReferenceEquals(HeaderNames.Connection, key)) 3105if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 3921if (ReferenceEquals(HeaderNames.Connection, key)) 3958if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 4812if (ReferenceEquals(HeaderNames.Connection, key)) 4873if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 5919if (ReferenceEquals(HeaderNames.Connection, key)) 5980if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 7037array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _headers._Connection); 7685nameStr = HeaderNames.Connection; 8409_current = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _collection._headers._Connection); 8831ValidateHeaderValueCharacters(HeaderNames.Connection, value, EncodingSelector); 11164if (ReferenceEquals(HeaderNames.Connection, key)) 11192if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 11893if (ReferenceEquals(HeaderNames.Connection, key)) 11913if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 12586if (ReferenceEquals(HeaderNames.Connection, key)) 12618if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 13478if (ReferenceEquals(HeaderNames.Connection, key)) 13510if (HeaderNames.Connection.Equals(key, StringComparison.OrdinalIgnoreCase)) 14454array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _headers._Connection); 14849headerName = HeaderNames.Connection; 15254_current = new KeyValuePair<string, StringValues>(HeaderNames.Connection, _collection._headers._Connection); 15965if (!TryGetUnknown(HeaderNames.Connection, ref value)) 15974ValidateHeaderValueCharacters(HeaderNames.Connection, value, EncodingSelector); 15975SetValueUnknown(HeaderNames.Connection, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (9)
src\Servers\Kestrel\shared\KnownHeaders.cs (9)
28HeaderNames.Connection, 95HeaderNames.Connection, 101HeaderNames.Connection, 110HeaderNames.Connection, 131HeaderNames.Connection, 199HeaderNames.Connection, 207HeaderNames.Connection, 290HeaderNames.Connection, 869public {(header.Name == HeaderNames.Connection ? "override " : "")}StringValues Header{header.Identifier}
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
BytesToStringBenchmark.cs (1)
33_headerName = HeaderNames.Connection;
Microsoft.AspNetCore.Shared.Tests (8)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
24HeaderNames.Connection,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1143if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1368if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1616if (string.Equals(key, HeaderNames.Connection, StringComparison.OrdinalIgnoreCase)) 1958if (string.Equals(key, HeaderNames.Connection, StringComparison.Ordinal)) 2231yield return HeaderNames.Connection; 2567yield return new KeyValuePair<string, StringValues>(HeaderNames.Connection, Connection); 2757HttpSysRequestHeader.Connection => HeaderNames.Connection,
Microsoft.AspNetCore.TestHost (1)
WebSocketClient.cs (1)
79request.Headers.Add(HeaderNames.Connection, new string[] { "Upgrade" });
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
261values = requestHeaders.GetCommaSeparatedValues(HeaderNames.Connection);
Microsoft.AspNetCore.WebSockets.Tests (1)
Http2WebSocketTests.cs (1)
52Assert.False(headers.TryGetValue(HeaderNames.Connection, out var _));