1 write to Http1Connection
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
TestHelpers\TestInput.cs (1)
52
Http1Connection
= new Http1Connection(Http1ConnectionContext);
67 references to Http1Connection
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (67)
MessageBodyTests.cs (65)
33
var body = Http1MessageBody.For(httpVersion, new HttpRequestHeaders { HeaderContentLength = "5" }, input.
Http1Connection
);
63
var body = Http1MessageBody.For(httpVersion, new HttpRequestHeaders { HeaderContentLength = "5" }, input.
Http1Connection
);
91
var body = Http1MessageBody.For(httpVersion, new HttpRequestHeaders { HeaderContentLength = "5" }, input.
Http1Connection
);
118
var body = Http1MessageBody.For(httpVersion, new HttpRequestHeaders { HeaderContentLength = "5" }, input.
Http1Connection
);
139
var body = Http1MessageBody.For(httpVersion, new HttpRequestHeaders { HeaderContentLength = "5" }, input.
Http1Connection
);
160
var body = Http1MessageBody.For(httpVersion, new HttpRequestHeaders { HeaderContentLength = "5" }, input.
Http1Connection
);
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
);
419
var body = Http1MessageBody.For(httpVersion, new HttpRequestHeaders { HeaderConnection = "upgrade" }, input.
Http1Connection
);
448
var body = Http1MessageBody.For(httpVersion, new HttpRequestHeaders { HeaderConnection = "upgrade" }, input.
Http1Connection
);
475
var body = Http1MessageBody.For(httpVersion, new HttpRequestHeaders(), input.
Http1Connection
);
499
var body = Http1MessageBody.For(httpVersion, new HttpRequestHeaders(), input.
Http1Connection
);
518
var body = Http1MessageBody.For(HttpVersion.Http10, new HttpRequestHeaders { HeaderContentLength = "8197" }, input.
Http1Connection
);
550
Http1MessageBody.For(HttpVersion.Http11, new HttpRequestHeaders { HeaderTransferEncoding = "chunked, not-chunked" }, input.
Http1Connection
));
565
input.
Http1Connection
.Method = method;
566
var result = Http1MessageBody.For(HttpVersion.Http11, new HttpRequestHeaders(), input.
Http1Connection
);
580
input.
Http1Connection
.Method = method;
584
Http1MessageBody.For(HttpVersion.Http10, new HttpRequestHeaders(), input.
Http1Connection
));
587
Assert.Equal(CoreStrings.FormatBadRequest_LengthRequiredHttp10(((IHttpRequestFeature)input.
Http1Connection
).Method), ex.Message);
596
var body = Http1MessageBody.For(HttpVersion.Http10, new HttpRequestHeaders { HeaderContentLength = "5" }, input.
Http1Connection
);
619
var body = Http1MessageBody.For(HttpVersion.Http10, new HttpRequestHeaders { HeaderContentLength = "5" }, input.
Http1Connection
);
636
var body = Http1MessageBody.For(HttpVersion.Http10, new HttpRequestHeaders { HeaderContentLength = "5" }, 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
);
744
input.
Http1Connection
.SendTimeoutResponse();
762
var body = Http1MessageBody.For(HttpVersion.Http11, new HttpRequestHeaders { HeaderContentLength = "5" }, input.
Http1Connection
);
773
input.
Http1Connection
.SendTimeoutResponse();
797
var body = Http1MessageBody.For(HttpVersion.Http11, new HttpRequestHeaders { HeaderContentLength = "5" }, input.
Http1Connection
);
806
input.
Http1Connection
.SendTimeoutResponse();
825
input.
Http1Connection
.ConnectionIdFeature = "ConnectionId";
826
input.
Http1Connection
.TraceIdentifier = "RequestId";
828
var body = Http1MessageBody.For(HttpVersion.Http11, new HttpRequestHeaders { HeaderContentLength = "2" }, input.
Http1Connection
);
862
input.
Http1Connection
.ConnectionIdFeature = "ConnectionId";
863
input.
Http1Connection
.TraceIdentifier = "RequestId";
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
);
918
var minReadRate = input.
Http1Connection
.MinRequestBodyDataRate;
926
var body = Http1MessageBody.For(HttpVersion.Http11, new HttpRequestHeaders { HeaderContentLength = "5" }, input.
Http1Connection
);
947
var minReadRate = input.
Http1Connection
.MinRequestBodyDataRate;
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
);
TestHelpers\TestInput.cs (2)
53
Http1Connection
.HttpResponseControl = Mock.Of<IHttpResponseControl>();
54
Http1Connection
.Reset();