24 references to ContentRangeHeaderValue
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
316httpResponseHeaders.ContentRange = new ContentRangeHeaderValue(fileLength);
Microsoft.AspNetCore.Http.Results.Tests (5)
src\Shared\ResultsTests\FileContentResultTestBase.cs (1)
254var contentRange = new ContentRangeHeaderValue(byteArray.Length);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (2)
244var contentRange = new ContentRangeHeaderValue(byteArray.Length); 362var contentRange = new ContentRangeHeaderValue(byteArray.Length);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
202var contentRange = new ContentRangeHeaderValue(34);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
244var contentRange = new ContentRangeHeaderValue(33);
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
316httpResponseHeaders.ContentRange = new ContentRangeHeaderValue(fileLength);
Microsoft.AspNetCore.Mvc.Core.Test (5)
src\Shared\ResultsTests\FileContentResultTestBase.cs (1)
254var contentRange = new ContentRangeHeaderValue(byteArray.Length);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (2)
244var contentRange = new ContentRangeHeaderValue(byteArray.Length); 362var contentRange = new ContentRangeHeaderValue(byteArray.Length);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (1)
202var contentRange = new ContentRangeHeaderValue(34);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
244var contentRange = new ContentRangeHeaderValue(33);
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
211requestContext.ResponseHeaders.ContentRange = new ContentRangeHeaderValue(_length);
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
373ResponseHeaders.ContentRange = new ContentRangeHeaderValue(_length);
Microsoft.Net.Http.Headers.Tests (10)
ContentRangeHeaderValueTest.cs (10)
11Assert.Throws<ArgumentOutOfRangeException>(() => new ContentRangeHeaderValue(-1)); 17var range = new ContentRangeHeaderValue(5); 75var range = new ContentRangeHeaderValue(0); 96range = new ContentRangeHeaderValue(150); 105var range3 = new ContentRangeHeaderValue(5); 123var range3 = new ContentRangeHeaderValue(5); 148CheckValidParse("bytes * / 3", new ContentRangeHeaderValue(3)); 154new ContentRangeHeaderValue(123) { Unit = "custom" }); 179CheckValidTryParse("bytes * / 3", new ContentRangeHeaderValue(3)); 185new ContentRangeHeaderValue(123) { Unit = "custom" });