4 types derived from MessageBody
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\Http1MessageBody.cs (1)
16
internal abstract class Http1MessageBody :
MessageBody
Internal\Http\ZeroContentLengthMessageBody.cs (1)
8
internal sealed class ZeroContentLengthMessageBody :
MessageBody
Internal\Http2\Http2MessageBody.cs (1)
21
internal sealed class Http2MessageBody :
MessageBody
Internal\Http3\Http3MessageBody.cs (1)
12
internal sealed class Http3MessageBody :
MessageBody
72 references to MessageBody
Microsoft.AspNetCore.Server.Kestrel.Core (20)
Internal\Http\Http1Connection.cs (1)
697
protected override
MessageBody
CreateMessageBody()
Internal\Http\Http1MessageBody.cs (5)
124
public static
MessageBody
For(
200
return keepAlive ?
MessageBody
.ZeroContentLengthKeepAlive :
MessageBody
.ZeroContentLengthClose;
215
return keepAlive ?
MessageBody
.ZeroContentLengthKeepAlive :
MessageBody
.ZeroContentLengthClose;
Internal\Http\HttpProtocol.cs (3)
325
public void InitializeBodyControl(
MessageBody
messageBody)
465
protected abstract
MessageBody
CreateMessageBody();
666
var
messageBody = CreateMessageBody();
Internal\Http\HttpRequestPipeReader.cs (2)
15
private
MessageBody
? _body;
73
public void StartAcceptingReads(
MessageBody
body)
Internal\Http\MessageBody.cs (4)
13
private static readonly
MessageBody
_zeroContentLengthClose = new ZeroContentLengthMessageBody(keepAlive: false);
14
private static readonly
MessageBody
_zeroContentLengthKeepAlive = new ZeroContentLengthMessageBody(keepAlive: true);
32
public static
MessageBody
ZeroContentLengthClose => _zeroContentLengthClose;
34
public static
MessageBody
ZeroContentLengthKeepAlive => _zeroContentLengthKeepAlive;
Internal\Http2\Http2Stream.cs (2)
194
protected override
MessageBody
CreateMessageBody()
198
return
MessageBody
.ZeroContentLengthClose;
Internal\Http3\Http3Stream.cs (1)
947
protected override
MessageBody
CreateMessageBody()
Internal\Infrastructure\BodyControl.cs (2)
58
public (Stream request, Stream response, PipeReader reader, PipeWriter writer) Start(
MessageBody
body)
62
_emptyRequestReader.StartAcceptingReads(
MessageBody
.ZeroContentLengthClose);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (52)
Http1\Http1ConnectionTests.cs (1)
378
var
messageBody = Http1MessageBody.For(Kestrel.Core.Internal.Http.HttpVersion.Http11, (HttpRequestHeaders)_http1Connection.RequestHeaders, _http1Connection);
MessageBodyTests.cs (51)
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);
566
var
result = Http1MessageBody.For(HttpVersion.Http11, new HttpRequestHeaders(), input.Http1Connection);
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);
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);