6 implementations of LastModified
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
710public StringValues LastModified
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
710public StringValues LastModified
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpHeaders.Generated.cs (3)
2175StringValues IHeaderDictionary.LastModified 9513StringValues IHeaderDictionary.LastModified 16428StringValues IHeaderDictionary.LastModified
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
710public StringValues LastModified
5 writes to LastModified
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
HeaderCollectionBenchmark.cs (1)
159headers.LastModified = "Wed, 22 Jun 2016 20:08:29 GMT";
Http2\HPackHeaderWriterBenchmark.cs (1)
40knownHeaders.LastModified = "Modified!";
ResponseHeaderCollectionBenchmark.cs (1)
127headers.LastModified = "Wed, 22 Jun 2016 20:08:29 GMT";
ResponseHeadersWritingBenchmark.cs (1)
124responseHeaders.LastModified = "Wed, 22 Jun 2016 20:08:29 GMT";
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
132_context.Response.Headers.LastModified = fileInfo.LastModified.ToString("ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture);
66 references to LastModified
Microsoft.AspNetCore.Http.Results.Tests (32)
src\Shared\ResultsTests\FileContentResultTestBase.cs (8)
81Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 119Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 159Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 193Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 225Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 255Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 294Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 329Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (9)
60Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 100Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 142Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 179Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 213Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 245Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 286Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 323Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 360Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (9)
58Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 89Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 118Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 145Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 174Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 206Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 234Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 261Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 318Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (6)
70Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 209Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 248Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 280Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 311Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 353Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
Microsoft.AspNetCore.Mvc.Core.Test (32)
src\Shared\ResultsTests\FileContentResultTestBase.cs (8)
81Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 119Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 159Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 193Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 225Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 255Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 294Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 329Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
src\Shared\ResultsTests\FileStreamResultTestBase.cs (9)
60Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 100Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 142Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 179Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 213Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 245Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified); 286Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 323Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 360Assert.Equal(lastModified.ToString("R"), httpResponse.Headers.LastModified);
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (9)
58Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 89Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 118Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 145Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 174Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 206Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 234Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 261Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 318Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (6)
70Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 209Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 248Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 280Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 311Assert.NotEqual(0, httpResponse.Headers.LastModified.Count); 353Assert.NotEqual(0, httpResponse.Headers.LastModified.Count);
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
463if (!HeaderUtilities.TryParseDate(cachedResponseHeaders.LastModified.ToString(), out modified) &&
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
HeaderCollectionBenchmark.cs (1)
278value = headers.LastModified;