2 implementations of ContentLength
Microsoft.AspNetCore.Http (1)
HeaderDictionary.cs (1)
119public long? ContentLength
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpHeaders.cs (1)
28public long? ContentLength
10 writes to ContentLength
Microsoft.AspNetCore.Http (2)
Internal\DefaultHttpRequest.cs (1)
88set { Headers.ContentLength = value; }
Internal\DefaultHttpResponse.cs (1)
90set { Headers.ContentLength = value; }
Microsoft.AspNetCore.Http.Extensions (2)
RequestHeaders.cs (1)
132Headers.ContentLength = value;
ResponseHeaders.cs (1)
72Headers.ContentLength = value;
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntry.cs (1)
116headers.ContentLength = Body.Length;
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
386context.CachedResponse.Headers.ContentLength = cachedResponseBody.Length;
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionBody.cs (1)
249headers.ContentLength = default;
Microsoft.AspNetCore.StaticAssets (2)
Development\StaticAssetDevelopmentRuntimeHandler.cs (2)
195_context.Response.Headers.ContentLength = stream.Length; 236_context.Response.Headers.ContentLength = fileInfo.Length;
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\ResponseStreamWrapper.cs (1)
120response.Headers.ContentLength = null;
7 references to ContentLength
Microsoft.AspNetCore.Http (2)
Internal\DefaultHttpRequest.cs (1)
87get { return Headers.ContentLength; }
Internal\DefaultHttpResponse.cs (1)
89get { return Headers.ContentLength; }
Microsoft.AspNetCore.Http.Extensions (2)
RequestHeaders.cs (1)
128return Headers.ContentLength;
ResponseHeaders.cs (1)
68return Headers.ContentLength;
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http2\Http2Connection.cs (1)
1309_currentHeadersStream.InputRemaining = _currentHeadersStream.RequestHeaders.ContentLength;
Internal\Http2\Http2MessageBody.cs (1)
38if (_context.RequestHeaders.ContentLength > maxRequestBodySize)
Internal\Http3\Http3MessageBody.cs (1)
29if (_context.RequestHeaders.ContentLength > maxRequestBodySize)