56 references to ETag
CodeGenerator (2)
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
229HeaderNames.ETag, 271HeaderNames.ETag,
InMemory.FunctionalTests (6)
Http2\Http2StreamTests.cs (5)
2551Assert.Equal("Custom 你好 Tag", _decodedHeaders[HeaderNames.ETag]); 3557Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3594Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3643Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3706Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize - 20, _decodedHeaders[HeaderNames.ETag].Length);
Http3\Http3StreamTests.cs (1)
1059Assert.Equal("Custom 你好 Tag", responseTrailers[HeaderNames.ETag]);
Microsoft.AspNetCore.Http.Extensions (2)
ResponseHeaders.cs (2)
128return Headers.Get<EntityTagHeaderValue>(HeaderNames.ETag); 132Headers.Set(HeaderNames.ETag, value);
Microsoft.AspNetCore.Http.Extensions.Tests (4)
HeaderDictionaryTypeExtensionsTest.cs (4)
97var result = context.Request.GetTypedHeaders().Get<EntityTagHeaderValue>(HeaderNames.ETag); 110var result = context.Request.GetTypedHeaders().Get<DateTimeOffset?>(HeaderNames.ETag); 121var result = context.Request.GetTypedHeaders().Get<long?>(HeaderNames.ETag); 231var result = context.Request.GetTypedHeaders().GetList<EntityTagHeaderValue>(HeaderNames.ETag);
Microsoft.AspNetCore.Http.Features (2)
IHeaderDictionary.Keyed.cs (2)
107StringValues ETag { get => this[HeaderNames.ETag]; set => this[HeaderNames.ETag] = value; }
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheEntryFormatter.cs (1)
431HeaderNames.ETag,
OutputCacheMiddleware.cs (1)
534if (cachedResponse.TryFindHeader(HeaderNames.ETag, out var raw)
Microsoft.AspNetCore.OutputCaching.Tests (3)
OutputCacheMiddlewareTests.cs (3)
325.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.ETag] = responseETag.ToString() }); 343context.CachedResponse.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.ETag] = "\"E2\"" }); 358context.CachedResponse.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.ETag] = "\"E2\"" });
Microsoft.AspNetCore.ResponseCaching.Tests (3)
ResponseCachingMiddlewareTests.cs (3)
321context.CachedResponseHeaders[HeaderNames.ETag] = responseETag.ToString(); 336context.CachedResponseHeaders[HeaderNames.ETag] = "\"E2\""; 349context.CachedResponseHeaders[HeaderNames.ETag] = "\"E2\"";
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
47HeaderNames.ETag,
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
47HeaderNames.ETag,
Microsoft.AspNetCore.Server.Kestrel.Core (25)
Internal\Http\HttpHeaders.Generated.cs (25)
318HeaderNames.ETag, 2112if (!TryGetUnknown(HeaderNames.ETag, ref value)) 2121SetValueUnknown(HeaderNames.ETag, value); 9415ValidateHeaderValueCharacters(HeaderNames.ETag, value, EncodingSelector); 10932if (ReferenceEquals(HeaderNames.ETag, key)) 10960if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 11725if (ReferenceEquals(HeaderNames.ETag, key)) 11745if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 12326if (ReferenceEquals(HeaderNames.ETag, key)) 12358if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 13218if (ReferenceEquals(HeaderNames.ETag, key)) 13250if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 14634array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _headers._ETag); 15374_current = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _collection._headers._ETag); 15548ValidateHeaderValueCharacters(HeaderNames.ETag, value, EncodingSelector); 17179if (ReferenceEquals(HeaderNames.ETag, key)) 17189if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17258if (ReferenceEquals(HeaderNames.ETag, key)) 17265if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17319if (ReferenceEquals(HeaderNames.ETag, key)) 17330if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17403if (ReferenceEquals(HeaderNames.ETag, key)) 17414if (HeaderNames.ETag.Equals(key, StringComparison.OrdinalIgnoreCase)) 17537array[arrayIndex] = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _headers._ETag); 17590_current = new KeyValuePair<string, StringValues>(HeaderNames.ETag, _collection._headers._ETag);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\KnownHeaders.cs (2)
229HeaderNames.ETag, 271HeaderNames.ETag,
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (1)
47HeaderNames.ETag,
Microsoft.AspNetCore.StaticAssets (2)
Development\StaticAssetDescriptorExtensions.cs (2)
42if (string.Equals(header.Name, HeaderNames.ETag, StringComparison.OrdinalIgnoreCase)) 72if (string.Equals(header.Name, HeaderNames.ETag, StringComparison.OrdinalIgnoreCase))