23 instantiations of EntityTagHeaderValue
Microsoft.AspNetCore.Mvc.FunctionalTests (12)
FileResultTests.cs (12)
229
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"Etag\""));
249
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"NotEtag\""));
281
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"Etag\""));
450
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"Etag\""));
470
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"NotEtag\""));
500
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"Etag\""));
654
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"Etag\""));
674
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"NotEtag\""));
706
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"Etag\""));
804
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"Etag\""));
827
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"NotEtag\""));
910
httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new
EntityTagHeaderValue
("\"Etag\""));
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCacheTests.cs (2)
760
client.DefaultRequestHeaders.IfNoneMatch.Add(new System.Net.Http.Headers.
EntityTagHeaderValue
("\"E1\""));
783
client.DefaultRequestHeaders.IfNoneMatch.Add(new System.Net.Http.Headers.
EntityTagHeaderValue
("\"E2\""));
Microsoft.AspNetCore.ResponseCaching.Tests (2)
ResponseCachingTests.cs (2)
711
client.DefaultRequestHeaders.IfNoneMatch.Add(new System.Net.Http.Headers.
EntityTagHeaderValue
("\"E1\""));
736
client.DefaultRequestHeaders.IfNoneMatch.Add(new System.Net.Http.Headers.
EntityTagHeaderValue
("\"E2\""));
Microsoft.AspNetCore.StaticAssets.Tests (2)
StaticAssetsIntegrationTests.cs (2)
830
req2.Headers.IfNoneMatch.Add(new
EntityTagHeaderValue
("\"fake\""));
840
req4.Headers.IfNoneMatch.Add(new
EntityTagHeaderValue
("\"fake\""));
System.Net.Http (5)
System\Net\Http\Headers\EntityTagHeaderValue.cs (4)
15
public static EntityTagHeaderValue Any { get; } = new
EntityTagHeaderValue
("*", isWeak: false, false);
24
new
EntityTagHeaderValue
(tag, isWeak);
131
parsedValue = new
EntityTagHeaderValue
(input.Substring(current, tagLength), isWeak, false);
140
object ICloneable.Clone() => ReferenceEquals(this, Any) ? Any : new
EntityTagHeaderValue
(this);
System\Net\Http\Headers\RangeConditionHeaderValue.cs (1)
32
: this(new
EntityTagHeaderValue
(entityTag))
25 references to EntityTagHeaderValue
netstandard (1)
netstandard.cs (1)
1102
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.Headers.
EntityTagHeaderValue
))]
System.Net.Http (24)
System\Net\Http\Headers\EntityTagHeaderValue.cs (8)
15
public static
EntityTagHeaderValue
Any { get; } = new EntityTagHeaderValue("*", isWeak: false, false);
45
private EntityTagHeaderValue(
EntityTagHeaderValue
source)
57
obj is
EntityTagHeaderValue
other &&
65
public static
EntityTagHeaderValue
Parse(string input)
68
return (
EntityTagHeaderValue
)GenericHeaderParser.SingleValueEntityTagParser.ParseValue(
72
public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out
EntityTagHeaderValue
? parsedValue)
79
parsedValue = (
EntityTagHeaderValue
)output!;
85
internal static int GetEntityTagLength(string? input, int startIndex, out
EntityTagHeaderValue
? parsedValue)
System\Net\Http\Headers\GenericHeaderParser.cs (5)
93
int resultLength =
EntityTagHeaderValue
.GetEntityTagLength(value, startIndex, out
EntityTagHeaderValue
? temp);
96
if (temp ==
EntityTagHeaderValue
.Any)
111
int resultLength =
EntityTagHeaderValue
.GetEntityTagLength(value, startIndex, out
EntityTagHeaderValue
? temp);
System\Net\Http\Headers\HttpRequestHeaders.cs (4)
125
public HttpHeaderValueCollection<
EntityTagHeaderValue
> IfMatch =>
126
GetSpecializedCollection(IfMatchSlot, static thisRef => new HttpHeaderValueCollection<
EntityTagHeaderValue
>(KnownHeaders.IfMatch.Descriptor, thisRef));
134
public HttpHeaderValueCollection<
EntityTagHeaderValue
> IfNoneMatch =>
135
GetSpecializedCollection(IfNoneMatchSlot, static thisRef => new HttpHeaderValueCollection<
EntityTagHeaderValue
>(KnownHeaders.IfNoneMatch.Descriptor, thisRef));
System\Net\Http\Headers\HttpResponseHeaders.cs (2)
41
public
EntityTagHeaderValue
? ETag
43
get { return (
EntityTagHeaderValue
?)GetSingleParsedValue(KnownHeaders.ETag.Descriptor); }
System\Net\Http\Headers\RangeConditionHeaderValue.cs (5)
13
private readonly
EntityTagHeaderValue
? _entityTag;
17
public
EntityTagHeaderValue
? EntityTag => _entityTag;
24
public RangeConditionHeaderValue(
EntityTagHeaderValue
entityTag)
89
EntityTagHeaderValue
? entityTag = null;
99
int entityTagLength =
EntityTagHeaderValue
.GetEntityTagLength(input, current, out entityTag);