Implemented interface member:
property
ContentLength
Microsoft.AspNetCore.Http.IHeaderDictionary.ContentLength
4 writes to ContentLength
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\Http1MessageBody.cs (1)
186
headers.
ContentLength
= null;
Internal\Http\HttpProtocol.cs (3)
1185
responseHeaders.
ContentLength
= null;
1211
responseHeaders.
ContentLength
= 0;
1368
responseHeaders.
ContentLength
= 0;
22 references to ContentLength
Microsoft.AspNetCore.Server.Kestrel.Core (22)
Internal\Http\Http1MessageBody.cs (4)
146
&& headers.
ContentLength
.GetValueOrDefault() == 0
182
if (headers.
ContentLength
.HasValue)
194
if (headers.
ContentLength
.HasValue)
196
var contentLength = headers.
ContentLength
.Value;
Internal\Http\HttpHeaders.Generated.cs (1)
14819
output.WriteNumeric((ulong)
ContentLength
.GetValueOrDefault());
Internal\Http\HttpProtocol.cs (12)
873
responseHeaders.
ContentLength
.HasValue &&
874
_responseBytesWritten + count > responseHeaders.
ContentLength
.Value)
894
CoreStrings.FormatTooManyBytesWritten(_responseBytesWritten + count, responseHeaders.
ContentLength
!.Value));
908
responseHeaders.
ContentLength
.HasValue &&
909
_responseBytesWritten == responseHeaders.
ContentLength
.Value)
922
responseHeaders.
ContentLength
.HasValue &&
923
_responseBytesWritten < responseHeaders.
ContentLength
.Value)
933
CoreStrings.FormatTooFewBytesWritten(_responseBytesWritten, responseHeaders.
ContentLength
.Value));
1176
else if (responseHeaders.
ContentLength
.HasValue)
1180
if (responseHeaders.
ContentLength
.Value == 0)
1192
else if (StatusCode == StatusCodes.Status205ResetContent && responseHeaders.
ContentLength
.Value != 0)
1204
else if (!hasTransferEncoding && !responseHeaders.
ContentLength
.HasValue)
Internal\Http\HttpRequestHeaders.cs (2)
246
_next = GetNext(_currentBits, collection.
ContentLength
.HasValue);
265
_next = GetNext(_currentBits, _collection.
ContentLength
.HasValue);
Internal\Http\HttpResponseHeaders.cs (2)
154
_next = GetNext(_currentBits, collection.
ContentLength
.HasValue);
176
_next = GetNext(_currentBits, _collection.
ContentLength
.HasValue);
Internal\Http3\Http3Stream.cs (1)
838
InputRemaining = HttpRequestHeaders.
ContentLength
;