10 instantiations of ContentRangeHeaderValue
Microsoft.AspNetCore.Http.Results (2)
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (2)
316httpResponseHeaders.ContentRange = new ContentRangeHeaderValue(fileLength); 323httpResponseHeaders.ContentRange = new ContentRangeHeaderValue(
Microsoft.AspNetCore.Mvc.Core (2)
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (2)
316httpResponseHeaders.ContentRange = new ContentRangeHeaderValue(fileLength); 323httpResponseHeaders.ContentRange = new ContentRangeHeaderValue(
Microsoft.AspNetCore.StaticAssets (3)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
222_context.Response.GetTypedHeaders().ContentRange = new ContentRangeHeaderValue(fileInfo.Length);
StaticAssetsInvoker.cs (2)
211requestContext.ResponseHeaders.ContentRange = new ContentRangeHeaderValue(_length); 249return new ContentRangeHeaderValue(start, end, _length);
Microsoft.AspNetCore.StaticFiles (2)
StaticFileContext.cs (2)
373ResponseHeaders.ContentRange = new ContentRangeHeaderValue(_length); 404return new ContentRangeHeaderValue(start, end, _length);
Microsoft.Net.Http.Headers (1)
ContentRangeHeaderValue.cs (1)
424var result = new ContentRangeHeaderValue();
25 references to ContentRangeHeaderValue
Microsoft.AspNetCore.Http.Extensions (8)
HeaderDictionaryTypeExtensions.cs (4)
139private static ContentRangeHeaderValue? ParseCacheContentRangeHeaderValue(string value) => ContentRangeHeaderValue.TryParse(value, out var result) ? result : null; 188else if (typeof(T) == typeof(ContentRangeHeaderValue))
RequestHeaders.cs (2)
139public ContentRangeHeaderValue? ContentRange 143return Headers.Get<ContentRangeHeaderValue>(HeaderNames.ContentRange);
ResponseHeaders.cs (2)
79public ContentRangeHeaderValue? ContentRange 83return Headers.Get<ContentRangeHeaderValue>(HeaderNames.ContentRange);
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
244private ContentRangeHeaderValue ComputeContentRange(RangeItemHeaderValue range, out long start, out long length)
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
399private ContentRangeHeaderValue ComputeContentRange(RangeItemHeaderValue range, out long start, out long length)
Microsoft.Net.Http.Headers (15)
ContentRangeHeaderValue.cs (15)
17private static readonly HttpHeaderParser<ContentRangeHeaderValue> Parser 18= new GenericHeaderParser<ContentRangeHeaderValue>(false, GetContentRangeLength); 28/// Initializes a new instance of <see cref="ContentRangeHeaderValue"/>. 60/// Initializes a new instance of <see cref="ContentRangeHeaderValue"/>. 74/// Initializes a new instance of <see cref="ContentRangeHeaderValue"/>. 144var other = obj as ContentRangeHeaderValue; 205/// Parses <paramref name="input"/> as a <see cref="ContentRangeHeaderValue"/> value. 209public static ContentRangeHeaderValue Parse(StringSegment input) 216/// Attempts to parse the specified <paramref name="input"/> as a <see cref="ContentRangeHeaderValue"/>. 220/// <returns><see langword="true"/> if input is a valid <see cref="ContentRangeHeaderValue"/>, otherwise <see langword="false"/>.</returns> 221public static bool TryParse(StringSegment input, [NotNullWhen(true)] out ContentRangeHeaderValue? parsedValue) 227private static int GetContentRangeLength(StringSegment input, int startIndex, out ContentRangeHeaderValue? parsedValue) 389[NotNullWhen(true)] out ContentRangeHeaderValue? parsedValue) 424var result = new ContentRangeHeaderValue();