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)
186headers.ContentLength = null;
Internal\Http\HttpProtocol.cs (3)
1179responseHeaders.ContentLength = null; 1205responseHeaders.ContentLength = 0; 1359responseHeaders.ContentLength = 0;
22 references to ContentLength
Microsoft.AspNetCore.Server.Kestrel.Core (22)
Internal\Http\Http1MessageBody.cs (4)
146&& headers.ContentLength.GetValueOrDefault() == 0 182if (headers.ContentLength.HasValue) 194if (headers.ContentLength.HasValue) 196var contentLength = headers.ContentLength.Value;
Internal\Http\HttpHeaders.Generated.cs (1)
14819output.WriteNumeric((ulong)ContentLength.GetValueOrDefault());
Internal\Http\HttpProtocol.cs (12)
867responseHeaders.ContentLength.HasValue && 868_responseBytesWritten + count > responseHeaders.ContentLength.Value) 888CoreStrings.FormatTooManyBytesWritten(_responseBytesWritten + count, responseHeaders.ContentLength!.Value)); 902responseHeaders.ContentLength.HasValue && 903_responseBytesWritten == responseHeaders.ContentLength.Value) 916responseHeaders.ContentLength.HasValue && 917_responseBytesWritten < responseHeaders.ContentLength.Value) 927CoreStrings.FormatTooFewBytesWritten(_responseBytesWritten, responseHeaders.ContentLength.Value)); 1170else if (responseHeaders.ContentLength.HasValue) 1174if (responseHeaders.ContentLength.Value == 0) 1186else if (StatusCode == StatusCodes.Status205ResetContent && responseHeaders.ContentLength.Value != 0) 1198else 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)
818InputRemaining = HttpRequestHeaders.ContentLength;