62 references to Http11
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Http\Http1Connection.cs (1)
867
Log.PossibleInvalidHttpVersionDetected(ConnectionId, Http.HttpVersion.
Http11
, Http.HttpVersion.Http2);
Internal\Http\HttpProtocol.cs (5)
169
if (_httpVersion == Http.HttpVersion.
Http11
)
196
_httpVersion = Http.HttpVersion.
Http11
;
222
_httpVersion = Http.HttpVersion.
Http11
;
1136
if (_httpVersion > Http.HttpVersion.
Http11
&& responseHeaders.HasInvalidH2H3Headers)
1219
else if (_httpVersion == Http.HttpVersion.
Http11
)
Internal\Http2\Http2Connection.cs (1)
581
if (detectedVersion == HttpVersion.Http10 || detectedVersion == HttpVersion.
Http11
)
Internal\Infrastructure\HttpUtilities.cs (2)
415
return HttpVersion.
Http11
;
458
case HttpVersion.
Http11
:
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (52)
Http1\Http1ConnectionTests.cs (2)
378
var messageBody = Http1MessageBody.For(Kestrel.Core.Internal.Http.HttpVersion.
Http11
, (HttpRequestHeaders)_http1Connection.RequestHeaders, _http1Connection);
1030
Http1MessageBody.For(Kestrel.Core.Internal.Http.HttpVersion.
Http11
, (HttpRequestHeaders)_http1Connection.RequestHeaders, _http1Connection);
HttpUtilitiesTest.cs (2)
56
[InlineData("HTTP/1.1\r", true, "HTTP/1.1", (int)HttpVersion.
Http11
)]
57
[InlineData("HTTP/1.1\rmoretext", true, "HTTP/1.1", (int)HttpVersion.
Http11
)]
MessageBodyTests.cs (48)
27
[InlineData((int)HttpVersion.
Http11
)]
57
[InlineData((int)HttpVersion.
Http11
)]
85
[InlineData((int)HttpVersion.
Http11
)]
112
[InlineData((int)HttpVersion.
Http11
)]
133
[InlineData((int)HttpVersion.
Http11
)]
154
[InlineData((int)HttpVersion.
Http11
)]
186
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
215
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
240
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
268
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
309
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
336
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
370
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
392
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
413
[InlineData((int)HttpVersion.
Http11
)]
442
[InlineData((int)HttpVersion.
Http11
)]
469
[InlineData((int)HttpVersion.
Http11
)]
493
[InlineData((int)HttpVersion.
Http11
)]
550
Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked, not-chunked" }, input.Http1Connection));
566
var result = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders(), input.Http1Connection);
658
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderConnection = headerConnection }, input.Http1Connection);
685
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderConnection = headerConnection, ContentLength = 0 }, input.Http1Connection);
707
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "2" }, input.Http1Connection);
735
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "5" }, input.Http1Connection);
762
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "5" }, input.Http1Connection);
797
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "5" }, input.Http1Connection);
828
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "2" }, input.Http1Connection);
865
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "2" }, input.Http1Connection);
890
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "12" }, input.Http1Connection);
926
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "5" }, input.Http1Connection);
951
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderConnection = "upgrade" }, input.Http1Connection);
983
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "5" }, input.Http1Connection);
1004
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
1025
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderConnection = "upgrade" }, input.Http1Connection);
1046
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders(), input.Http1Connection);
1069
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "5" }, input.Http1Connection);
1088
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
1115
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderConnection = "upgrade" }, input.Http1Connection);
1141
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders(), input.Http1Connection);
1164
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "5" }, input.Http1Connection);
1188
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "5" }, input.Http1Connection);
1214
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "5" }, input.Http1Connection);
1241
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderContentLength = "5" }, input.Http1Connection);
1274
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
1301
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
1325
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderTransferEncoding = "chunked" }, input.Http1Connection);
1351
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders { HeaderConnection = "upgrade" }, input.Http1Connection);
1377
var body = Http1MessageBody.For(HttpVersion.
Http11
, new HttpRequestHeaders(), input.Http1Connection);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Mocks\NullParser.cs (1)
39
new HttpVersionAndMethod(HttpMethod.Get, 3) { Version = HttpVersion.
Http11
},