1 instantiation of RangeConditionHeaderValue
Microsoft.Net.Http.Headers (1)
RangeConditionHeaderValue.cs (1)
186parsedValue = new RangeConditionHeaderValue();
28 references to RangeConditionHeaderValue
Microsoft.AspNetCore.HeaderParsing (5)
CommonHeaders.cs (1)
80public static HeaderSetup<RangeConditionHeaderValue> IfRange => new(HeaderNames.IfRange, RangeConditionHeaderValueParser.Instance);
Parsers\RangeConditionHeaderValueParser.cs (4)
10internal sealed class RangeConditionHeaderValueParser : HeaderParser<RangeConditionHeaderValue> 14public override bool TryParse(StringValues values, [NotNullWhen(true)] out RangeConditionHeaderValue? result, [NotNullWhen(false)] out string? error) 16if (values.Count != 1 || !RangeConditionHeaderValue.TryParse(values[0], out var parsedValue))
Microsoft.AspNetCore.Http.Extensions (6)
HeaderDictionaryTypeExtensions.cs (4)
143private static RangeConditionHeaderValue? ParseCacheRangeConditionHeaderValue(string value) => RangeConditionHeaderValue.TryParse(value, out var result) ? result : null; 196else if (typeof(T) == typeof(RangeConditionHeaderValue))
RequestHeaders.cs (2)
274public RangeConditionHeaderValue? IfRange 278return Headers.Get<RangeConditionHeaderValue>(HeaderNames.IfRange);
Microsoft.AspNetCore.Http.Results (1)
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (1)
168var ifRange = httpRequestHeaders.IfRange;
Microsoft.AspNetCore.Mvc.Core (1)
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (1)
168var ifRange = httpRequestHeaders.IfRange;
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
366var ifRangeHeader = _requestHeaders.IfRange;
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
203var ifRangeHeader = RequestHeaders.IfRange;
Microsoft.Net.Http.Headers (13)
RangeConditionHeaderValue.cs (13)
15private static readonly HttpHeaderParser<RangeConditionHeaderValue> Parser 16= new GenericHeaderParser<RangeConditionHeaderValue>(false, GetRangeConditionLength); 27/// Initializes a new instance of <see cref="RangeConditionHeaderValue"/>. 36/// Initializes a new instance of <see cref="RangeConditionHeaderValue"/>. 47/// Initializes a new instance of <see cref="RangeConditionHeaderValue"/>. 84var other = obj as RangeConditionHeaderValue; 111/// Parses <paramref name="input"/> as a <see cref="RangeConditionHeaderValue"/> value. 115public static RangeConditionHeaderValue Parse(StringSegment input) 122/// Attempts to parse the specified <paramref name="input"/> as a <see cref="RangeConditionHeaderValue"/>. 126/// <returns><see langword="true"/> if input is a valid <see cref="RangeConditionHeaderValue"/>, otherwise <see langword="false"/>.</returns> 127public static bool TryParse(StringSegment input, [NotNullWhen(true)] out RangeConditionHeaderValue? parsedValue) 133private static int GetRangeConditionLength(StringSegment input, int startIndex, out RangeConditionHeaderValue? parsedValue)