21 references to ConnectionOptions
Microsoft.AspNetCore.Server.Kestrel.Core (19)
Internal\Http\Http1MessageBody.cs (4)
135
var
connectionOptions = HttpHeaders.ParseConnection(headers);
137
upgrade = (connectionOptions &
ConnectionOptions
.Upgrade) != 0;
138
keepAlive = keepAlive || (connectionOptions &
ConnectionOptions
.KeepAlive) != 0;
139
keepAlive = keepAlive && (connectionOptions &
ConnectionOptions
.Close) == 0;
Internal\Http\HttpHeaders.cs (14)
318
public static
ConnectionOptions
ParseConnection(HttpHeaders headers)
335
return
ConnectionOptions
.None;
338
var
connectionOptions =
ConnectionOptions
.None;
348
return
ConnectionOptions
.KeepAlive;
384
var
potentialConnectionOptions =
ConnectionOptions
.None;
401
potentialConnectionOptions =
ConnectionOptions
.KeepAlive;
416
potentialConnectionOptions =
ConnectionOptions
.Upgrade;
425
potentialConnectionOptions =
ConnectionOptions
.Close;
450
potentialConnectionOptions =
ConnectionOptions
.None;
482
if (connectionOptions ==
ConnectionOptions
.Upgrade)
486
else if (connectionOptions ==
ConnectionOptions
.KeepAlive)
490
else if (connectionOptions ==
ConnectionOptions
.Close)
Internal\Http\HttpProtocol.cs (1)
1147
(HttpHeaders.ParseConnection(responseHeaders) &
ConnectionOptions
.KeepAlive) == 0)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
HttpHeadersTests.cs (2)
141
var
connectionOptions = HttpHeaders.ParseConnection(requestHeaders);
167
var
connectionOptions = HttpHeaders.ParseConnection(requestHeaders);