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