1 override of ContentLength
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
85public override long? ContentLength
10 references to ContentLength
Microsoft.AspNetCore.Hosting (3)
Internal\HostingRequestStartingLog.cs (3)
283 => new KeyValuePair<string, object?>(nameof(_request.ContentLength), _request.ContentLength), 48_cachedToString = $"Request starting {request.Protocol} {request.Method} {request.Scheme}://{request.Host.Value}{request.PathBase.Value}{request.Path.Value}{request.QueryString.Value} - {EscapedValueOrEmptyMarker(request.ContentType)} {ValueOrEmptyMarker(request.ContentLength)}";
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
194if (_request.ContentLength == 0)
Microsoft.AspNetCore.Http.Abstractions (1)
HttpRequest.cs (1)
175public long? ContentLength => _request.ContentLength;
Microsoft.AspNetCore.Mvc.Core (3)
Formatters\InputFormatter.cs (1)
98canHaveBody ??= context.HttpContext.Request.ContentLength != 0;
ModelBinding\Binders\BodyModelBinder.cs (2)
136hasBody ??= httpContext.Request.ContentLength is not null && httpContext.Request.ContentLength == 0;
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
XmlDataContractSerializerInputFormatter.cs (1)
123var contentLength = request.ContentLength.GetValueOrDefault();
XmlSerializerInputFormatter.cs (1)
107var contentLength = request.ContentLength.GetValueOrDefault();