27 references to Close
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\Http1MessageBody.cs (1)
139
keepAlive = keepAlive && (connectionOptions & ConnectionOptions.
Close
) == 0;
Internal\Http\HttpHeaders.cs (2)
425
potentialConnectionOptions = ConnectionOptions.
Close
;
490
else if (connectionOptions == ConnectionOptions.
Close
)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (24)
HttpHeadersTests.cs (24)
59
[InlineData("close,", (int)(ConnectionOptions.
Close
))]
60
[InlineData("close,,", (int)(ConnectionOptions.
Close
))]
61
[InlineData("close, ", (int)(ConnectionOptions.
Close
))]
62
[InlineData("close, ,", (int)(ConnectionOptions.
Close
))]
63
[InlineData("close, , ", (int)(ConnectionOptions.
Close
))]
64
[InlineData("close ,", (int)(ConnectionOptions.
Close
))]
65
[InlineData(",close", (int)(ConnectionOptions.
Close
))]
66
[InlineData(", close", (int)(ConnectionOptions.
Close
))]
67
[InlineData(",,close", (int)(ConnectionOptions.
Close
))]
68
[InlineData(", ,close", (int)(ConnectionOptions.
Close
))]
69
[InlineData(",, close", (int)(ConnectionOptions.
Close
))]
70
[InlineData(", , close", (int)(ConnectionOptions.
Close
))]
79
[InlineData("CLOSE", (int)(ConnectionOptions.
Close
))]
80
[InlineData("close", (int)(ConnectionOptions.
Close
))]
81
[InlineData("upgrade,close", (int)(ConnectionOptions.
Close
| ConnectionOptions.Upgrade))]
82
[InlineData("close,upgrade", (int)(ConnectionOptions.
Close
| ConnectionOptions.Upgrade))]
106
[InlineData("keep-alive 2, close", (int)(ConnectionOptions.
Close
))]
107
[InlineData("upgrade 2, close", (int)(ConnectionOptions.
Close
))]
108
[InlineData("close, keep-alive 2", (int)(ConnectionOptions.
Close
))]
109
[InlineData("close, upgrade 2", (int)(ConnectionOptions.
Close
))]
157
[InlineData("close", "", (int)(ConnectionOptions.
Close
))]
158
[InlineData("", "close", (int)(ConnectionOptions.
Close
))]
159
[InlineData("close", "upgrade", (int)(ConnectionOptions.
Close
| ConnectionOptions.Upgrade))]
160
[InlineData("upgrade", "close", (int)(ConnectionOptions.
Close
| ConnectionOptions.Upgrade))]