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)
181
headers.
ContentLength
= null;
Internal\Http\HttpProtocol.cs (3)
1172
responseHeaders.
ContentLength
= null;
1198
responseHeaders.
ContentLength
= 0;
1352
responseHeaders.
ContentLength
= 0;
22 references to ContentLength
Microsoft.AspNetCore.Server.Kestrel.Core (22)
Internal\Http\Http1MessageBody.cs (4)
141
&& headers.
ContentLength
.GetValueOrDefault() == 0
177
if (headers.
ContentLength
.HasValue)
189
if (headers.
ContentLength
.HasValue)
191
var contentLength = headers.
ContentLength
.Value;
Internal\Http\HttpHeaders.Generated.cs (1)
14819
output.WriteNumeric((ulong)
ContentLength
.GetValueOrDefault());
Internal\Http\HttpProtocol.cs (12)
860
responseHeaders.
ContentLength
.HasValue &&
861
_responseBytesWritten + count > responseHeaders.
ContentLength
.Value)
881
CoreStrings.FormatTooManyBytesWritten(_responseBytesWritten + count, responseHeaders.
ContentLength
!.Value));
895
responseHeaders.
ContentLength
.HasValue &&
896
_responseBytesWritten == responseHeaders.
ContentLength
.Value)
909
responseHeaders.
ContentLength
.HasValue &&
910
_responseBytesWritten < responseHeaders.
ContentLength
.Value)
920
CoreStrings.FormatTooFewBytesWritten(_responseBytesWritten, responseHeaders.
ContentLength
.Value));
1163
else if (responseHeaders.
ContentLength
.HasValue)
1167
if (responseHeaders.
ContentLength
.Value == 0)
1179
else if (StatusCode == StatusCodes.Status205ResetContent && responseHeaders.
ContentLength
.Value != 0)
1191
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)
815
InputRemaining = HttpRequestHeaders.
ContentLength
;