84 references to Date
CodeGenerator (4)
src\Servers\Kestrel\shared\KnownHeaders.cs (4)
102HeaderNames.Date, 111HeaderNames.Date, 201HeaderNames.Date, 209HeaderNames.Date,
Microsoft.AspNetCore.HeaderParsing (1)
CommonHeaders.cs (1)
60public static HeaderSetup<DateTimeOffset> Date => new(HeaderNames.Date, DateTimeOffsetParser.Instance);
Microsoft.AspNetCore.HeaderParsing.Tests (1)
CommonHeadersTests.cs (1)
79Assert.Equal(HeaderNames.Date, CommonHeaders.Date.HeaderName);
Microsoft.AspNetCore.Http.Extensions (4)
RequestHeaders.cs (2)
188return Headers.GetDate(HeaderNames.Date); 192Headers.SetDate(HeaderNames.Date, value);
ResponseHeaders.cs (2)
113return Headers.GetDate(HeaderNames.Date); 117Headers.SetDate(HeaderNames.Date, value);
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
104StringValues Date { get => this[HeaderNames.Date]; set => this[HeaderNames.Date] = value; }
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingOptions.cs (2)
44HeaderNames.Date, 84HeaderNames.Date,
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheEntryFormatter.cs (1)
429HeaderNames.Date,
OutputCacheMiddleware.cs (1)
556!HeaderUtilities.TryParseDate(cachedResponse.FindHeader(HeaderNames.Date).ToString(), out modified))
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCacheMiddlewareTests.cs (2)
183entry.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.Date] = HeaderUtilities.FormatDate(value) }); 223[HeaderNames.Date] = HeaderUtilities.FormatDate(date),
Microsoft.AspNetCore.ResponseCaching.Tests (6)
ResponseCachingMiddlewareTests.cs (6)
198context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10)); 203context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow); 208context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)); 229context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)); 235context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)); 241context.CachedResponseHeaders[HeaderNames.Date] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10));
Microsoft.AspNetCore.Server.HttpSys (9)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
25HeaderNames.Date,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
39HeaderNames.Age, HeaderNames.Expires, HeaderNames.Date, HeaderNames.Location, HeaderNames.RetryAfter, HeaderNames.Vary, HeaderNames.Warning,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1063if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1271if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1519if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1776if (string.Equals(key, HeaderNames.Date, StringComparison.Ordinal)) 2267yield return HeaderNames.Date; 2603yield return new KeyValuePair<string, StringValues>(HeaderNames.Date, Date); 2766HttpSysRequestHeader.Date => HeaderNames.Date,
Microsoft.AspNetCore.Server.IIS (9)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
25HeaderNames.Date,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
39HeaderNames.Age, HeaderNames.Expires, HeaderNames.Date, HeaderNames.Location, HeaderNames.RetryAfter, HeaderNames.Vary, HeaderNames.Warning,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1063if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1271if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1519if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1776if (string.Equals(key, HeaderNames.Date, StringComparison.Ordinal)) 2267yield return HeaderNames.Date; 2603yield return new KeyValuePair<string, StringValues>(HeaderNames.Date, Date); 2766HttpSysRequestHeader.Date => HeaderNames.Date,
Microsoft.AspNetCore.Server.Kestrel.Core (29)
Internal\Http\HttpHeaders.Generated.cs (29)
316HeaderNames.Date, 2651if (ReferenceEquals(HeaderNames.Date, key)) 2679if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 3645if (ReferenceEquals(HeaderNames.Date, key)) 3664if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 4372if (ReferenceEquals(HeaderNames.Date, key)) 4403if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 5479if (ReferenceEquals(HeaderNames.Date, key)) 5510if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 7217array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Date, _headers._Date); 7552nameStr = HeaderNames.Date; 8014nameStr = HeaderNames.Date; 8178nameStr = HeaderNames.Date; 8509_current = new KeyValuePair<string, StringValues>(HeaderNames.Date, _collection._headers._Date); 8890ValidateHeaderValueCharacters(HeaderNames.Date, value, EncodingSelector); 10923if (ReferenceEquals(HeaderNames.Date, key)) 10951if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 11718if (ReferenceEquals(HeaderNames.Date, key)) 11738if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 12315if (ReferenceEquals(HeaderNames.Date, key)) 12347if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 13207if (ReferenceEquals(HeaderNames.Date, key)) 13239if (HeaderNames.Date.Equals(key, StringComparison.OrdinalIgnoreCase)) 14472array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.Date, _headers._Date); 14875headerName = HeaderNames.Date; 15266_current = new KeyValuePair<string, StringValues>(HeaderNames.Date, _collection._headers._Date); 16181if (!TryGetUnknown(HeaderNames.Date, ref value)) 16190ValidateHeaderValueCharacters(HeaderNames.Date, value, EncodingSelector); 16191SetValueUnknown(HeaderNames.Date, value);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
src\Servers\Kestrel\shared\KnownHeaders.cs (4)
102HeaderNames.Date, 111HeaderNames.Date, 201HeaderNames.Date, 209HeaderNames.Date,
Microsoft.AspNetCore.Shared.Tests (9)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
25HeaderNames.Date,
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
39HeaderNames.Age, HeaderNames.Expires, HeaderNames.Date, HeaderNames.Location, HeaderNames.RetryAfter, HeaderNames.Vary, HeaderNames.Warning,
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (7)
1063if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1271if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1519if (string.Equals(key, HeaderNames.Date, StringComparison.OrdinalIgnoreCase)) 1776if (string.Equals(key, HeaderNames.Date, StringComparison.Ordinal)) 2267yield return HeaderNames.Date; 2603yield return new KeyValuePair<string, StringValues>(HeaderNames.Date, Date); 2766HttpSysRequestHeader.Date => HeaderNames.Date,