62 references to LastModified
CodeGenerator (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
244HeaderNames.LastModified,
Microsoft.AspNetCore.Http.Extensions (4)
RequestHeaders.cs (2)
308return Headers.GetDate(HeaderNames.LastModified); 312Headers.SetDate(HeaderNames.LastModified, value);
ResponseHeaders.cs (2)
158return Headers.GetDate(HeaderNames.LastModified); 162Headers.SetDate(HeaderNames.LastModified, value);
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
155StringValues LastModified { get => this[HeaderNames.LastModified]; set => this[HeaderNames.LastModified] = value; }
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingOptions.cs (1)
86HeaderNames.LastModified,
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheEntryFormatter.cs (1)
442HeaderNames.LastModified,
OutputCacheMiddleware.cs (1)
555if (!HeaderUtilities.TryParseDate(cachedResponse.FindHeader(HeaderNames.LastModified).ToString(), out var modified) &&
Microsoft.AspNetCore.OutputCaching.Tests (3)
OutputCacheMiddlewareTests.cs (3)
224[HeaderNames.LastModified] = HeaderUtilities.FormatDate(lastModified), 261entry.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)) }); 282context.CachedResponse.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10)) });
Microsoft.AspNetCore.ResponseCaching.Tests (5)
ResponseCachingMiddlewareTests.cs (5)
230context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10)); 236context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow); 242context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)); 262context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)); 281context.CachedResponseHeaders[HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10));
Microsoft.AspNetCore.Server.HttpSys (8)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
43HeaderNames.LastModified,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1189if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1424if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1672if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 2064if (string.Equals(key, HeaderNames.LastModified, StringComparison.Ordinal)) 2311yield return HeaderNames.LastModified; 2647yield return new KeyValuePair<string, StringValues>(HeaderNames.LastModified, LastModified); 2777HttpSysRequestHeader.LastModified => HeaderNames.LastModified,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
RequestHeaderTests.cs (1)
304yield return (HttpSysRequestHeader.LastModified, HeaderNames.LastModified);
Microsoft.AspNetCore.Server.IIS (8)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
43HeaderNames.LastModified,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1189if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1424if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1672if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 2064if (string.Equals(key, HeaderNames.LastModified, StringComparison.Ordinal)) 2311yield return HeaderNames.LastModified; 2647yield return new KeyValuePair<string, StringValues>(HeaderNames.LastModified, LastModified); 2777HttpSysRequestHeader.LastModified => HeaderNames.LastModified,
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Internal\Http\HttpHeaders.Generated.cs (17)
334HeaderNames.LastModified, 2180if (!TryGetUnknown(HeaderNames.LastModified, ref value)) 2189SetValueUnknown(HeaderNames.LastModified, value); 9531ValidateHeaderValueCharacters(HeaderNames.LastModified, value, EncodingSelector); 11323if (ReferenceEquals(HeaderNames.LastModified, key)) 11369if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 12006if (ReferenceEquals(HeaderNames.LastModified, key)) 12037if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 12763if (ReferenceEquals(HeaderNames.LastModified, key)) 12814if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 13655if (ReferenceEquals(HeaderNames.LastModified, key)) 13706if (HeaderNames.LastModified.Equals(key, StringComparison.OrdinalIgnoreCase)) 14670array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.LastModified, _headers._LastModified); 15398_current = new KeyValuePair<string, StringValues>(HeaderNames.LastModified, _collection._headers._LastModified); 16433if (!TryGetUnknown(HeaderNames.LastModified, ref value)) 16442ValidateHeaderValueCharacters(HeaderNames.LastModified, value, EncodingSelector); 16443SetValueUnknown(HeaderNames.LastModified, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
244HeaderNames.LastModified,
Microsoft.AspNetCore.Shared.Tests (8)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
43HeaderNames.LastModified,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1189if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1424if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 1672if (string.Equals(key, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase)) 2064if (string.Equals(key, HeaderNames.LastModified, StringComparison.Ordinal)) 2311yield return HeaderNames.LastModified; 2647yield return new KeyValuePair<string, StringValues>(HeaderNames.LastModified, LastModified); 2777HttpSysRequestHeader.LastModified => HeaderNames.LastModified,
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDescriptorExtensions.cs (1)
29if (string.Equals(header.Name, HeaderNames.LastModified, StringComparison.OrdinalIgnoreCase))