34 references to KeepAlive
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Http\Http1MessageBody.cs (1)
138keepAlive = keepAlive || (connectionOptions & ConnectionOptions.KeepAlive) != 0;
Internal\Http\HttpHeaders.cs (3)
348return ConnectionOptions.KeepAlive; 401potentialConnectionOptions = ConnectionOptions.KeepAlive; 486else if (connectionOptions == ConnectionOptions.KeepAlive)
Internal\Http\HttpProtocol.cs (1)
1153(HttpHeaders.ParseConnection(responseHeaders) & ConnectionOptions.KeepAlive) == 0)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (29)
HttpHeadersTests.cs (29)
26[InlineData("KEEP-ALIVE", (int)(ConnectionOptions.KeepAlive))] 27[InlineData("keep-alive", (int)(ConnectionOptions.KeepAlive))] 28[InlineData("keep-alive, upgrade", (int)(ConnectionOptions.KeepAlive | ConnectionOptions.Upgrade))] 29[InlineData("keep-alive,upgrade", (int)(ConnectionOptions.KeepAlive | ConnectionOptions.Upgrade))] 30[InlineData("upgrade, keep-alive", (int)(ConnectionOptions.KeepAlive | ConnectionOptions.Upgrade))] 31[InlineData("upgrade,keep-alive", (int)(ConnectionOptions.KeepAlive | ConnectionOptions.Upgrade))] 32[InlineData("upgrade,,keep-alive", (int)(ConnectionOptions.KeepAlive | ConnectionOptions.Upgrade))] 33[InlineData("keep-alive,", (int)(ConnectionOptions.KeepAlive))] 34[InlineData("keep-alive,,", (int)(ConnectionOptions.KeepAlive))] 35[InlineData("keep-alive, ", (int)(ConnectionOptions.KeepAlive))] 36[InlineData("keep-alive, ,", (int)(ConnectionOptions.KeepAlive))] 37[InlineData("keep-alive, , ", (int)(ConnectionOptions.KeepAlive))] 38[InlineData("keep-alive ,", (int)(ConnectionOptions.KeepAlive))] 39[InlineData(",keep-alive", (int)(ConnectionOptions.KeepAlive))] 40[InlineData(", keep-alive", (int)(ConnectionOptions.KeepAlive))] 41[InlineData(",,keep-alive", (int)(ConnectionOptions.KeepAlive))] 42[InlineData(", ,keep-alive", (int)(ConnectionOptions.KeepAlive))] 43[InlineData(",, keep-alive", (int)(ConnectionOptions.KeepAlive))] 44[InlineData(", , keep-alive", (int)(ConnectionOptions.KeepAlive))] 76[InlineData("u,keep-alive", (int)(ConnectionOptions.KeepAlive))] 78[InlineData("up,keep-alive", (int)(ConnectionOptions.KeepAlive))] 146[InlineData("keep-alive", "upgrade", (int)(ConnectionOptions.KeepAlive | ConnectionOptions.Upgrade))] 147[InlineData("upgrade", "keep-alive", (int)(ConnectionOptions.KeepAlive | ConnectionOptions.Upgrade))] 148[InlineData("keep-alive", "", (int)(ConnectionOptions.KeepAlive))] 149[InlineData("", "keep-alive", (int)(ConnectionOptions.KeepAlive))] 152[InlineData("keep-alive, upgrade", "", (int)(ConnectionOptions.KeepAlive | ConnectionOptions.Upgrade))] 153[InlineData("upgrade, keep-alive", "", (int)(ConnectionOptions.KeepAlive | ConnectionOptions.Upgrade))] 154[InlineData("", "keep-alive, upgrade", (int)(ConnectionOptions.KeepAlive | ConnectionOptions.Upgrade))] 155[InlineData("", "upgrade, keep-alive", (int)(ConnectionOptions.KeepAlive | ConnectionOptions.Upgrade))]