48 references to RangeItemHeaderValue
Microsoft.AspNetCore.Http.Results (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
126return new RangeItemHeaderValue(start, end);
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
126return new RangeItemHeaderValue(start, end);
Microsoft.AspNetCore.StaticAssets (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
126return new RangeItemHeaderValue(start, end);
Microsoft.AspNetCore.StaticFiles (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
126return new RangeItemHeaderValue(start, end);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
src\Shared\RangeHelper\RangeHelper.cs (1)
126return new RangeItemHeaderValue(start, end);
Microsoft.AspNetCore.StaticFiles.Tests (4)
RangeHelperTests.cs (4)
18var normalizedRange = RangeHelper.NormalizeRange(new RangeItemHeaderValue(start, end), 1); 28var normalizedRange = RangeHelper.NormalizeRange(new RangeItemHeaderValue(null, 0), 1); 40var normalizedRange = RangeHelper.NormalizeRange(new RangeItemHeaderValue(start, end), 3); 51var normalizedRange = RangeHelper.NormalizeRange(new RangeItemHeaderValue(1, 3), 4);
Microsoft.Net.Http.Headers (2)
RangeHeaderValue.cs (1)
43Ranges.Add(new RangeItemHeaderValue(from, to));
RangeItemHeaderValue.cs (1)
234parsedValue = new RangeItemHeaderValue((fromLength == 0 ? (long?)null : (long?)from),
Microsoft.Net.Http.Headers.Tests (37)
RangeHeaderValueTest.cs (19)
33range.Ranges.Add(new RangeItemHeaderValue(1, 3)); 36range.Ranges.Add(new RangeItemHeaderValue(5, null)); 37range.Ranges.Add(new RangeItemHeaderValue(null, 17)); 50range5.Ranges.Add(new RangeItemHeaderValue(1, 2)); 51range5.Ranges.Add(new RangeItemHeaderValue(3, 4)); 53range6.Ranges.Add(new RangeItemHeaderValue(3, 4)); // reverse order of range5 54range6.Ranges.Add(new RangeItemHeaderValue(1, 2)); 72range5.Ranges.Add(new RangeItemHeaderValue(1, 2)); 73range5.Ranges.Add(new RangeItemHeaderValue(3, 4)); 75range6.Ranges.Add(new RangeItemHeaderValue(3, 4)); // reverse order of range5 76range6.Ranges.Add(new RangeItemHeaderValue(1, 2)); 96expected.Ranges.Add(new RangeItemHeaderValue(null, 5)); 97expected.Ranges.Add(new RangeItemHeaderValue(1, 4)); 102expected.Ranges.Add(new RangeItemHeaderValue(1, 2)); 106expected.Ranges.Add(new RangeItemHeaderValue(1, 2)); 107expected.Ranges.Add(new RangeItemHeaderValue(3, null)); 108expected.Ranges.Add(new RangeItemHeaderValue(null, 4)); 135expected.Ranges.Add(new RangeItemHeaderValue(null, 5)); 136expected.Ranges.Add(new RangeItemHeaderValue(1, 4));
RangeItemHeaderValueTest.cs (18)
11Assert.Throws<ArgumentException>(() => new RangeItemHeaderValue(null, null)); 17Assert.Throws<ArgumentOutOfRangeException>(() => new RangeItemHeaderValue(-1, null)); 23Assert.Throws<ArgumentOutOfRangeException>(() => new RangeItemHeaderValue(2, 1)); 29Assert.Throws<ArgumentOutOfRangeException>(() => new RangeItemHeaderValue(null, -1)); 35var rangeItem = new RangeItemHeaderValue(1, 2); 44var rangeItem = new RangeItemHeaderValue(1000000000, 2000000000); 47rangeItem = new RangeItemHeaderValue(5, null); 50rangeItem = new RangeItemHeaderValue(null, 10); 57var rangeItem1 = new RangeItemHeaderValue(1, 2); 58var rangeItem2 = new RangeItemHeaderValue(1, null); 59var rangeItem3 = new RangeItemHeaderValue(null, 2); 60var rangeItem4 = new RangeItemHeaderValue(2, 2); 61var rangeItem5 = new RangeItemHeaderValue(1, 2); 72var rangeItem1 = new RangeItemHeaderValue(1, 2); 73var rangeItem2 = new RangeItemHeaderValue(1, null); 74var rangeItem3 = new RangeItemHeaderValue(null, 2); 75var rangeItem4 = new RangeItemHeaderValue(2, 2); 76var rangeItem5 = new RangeItemHeaderValue(1, 2);