1 write to Name
Microsoft.AspNetCore.HeaderParsing (1)
HeaderKey.cs (1)
33
Name
= name;
12 references to Name
Microsoft.AspNetCore.HeaderParsing (8)
HeaderKey.cs (1)
61
public override string ToString() =>
Name
;
HeaderParsingFeature.cs (7)
139
if (feature.Context!.Request.Headers.TryGetValue(header.
Name
, out var values))
146
feature._metrics.CacheAccessCounter.Add(1, header.
Name
, "Hit");
154
feature._metrics.CacheAccessCounter.Add(1, header.
Name
, "Miss");
171
feature.LogParsingError(header.
Name
, error!);
172
feature._metrics.ParsingErrorCounter.Add(1, header.
Name
, error);
179
feature.LogDefaultUsage(header.
Name
);
184
feature.LogNotFound(header.
Name
);
Microsoft.AspNetCore.HeaderParsing.Tests (4)
HeaderKeyTests.cs (1)
30
Assert.Equal(TestHeaderName, sut.
Name
);
HeaderParsingFeatureTests.cs (2)
178
Context.Request.Headers[firstHeaderKey.
Name
] = DateTimeOffset.Now.ToString("R", CultureInfo.InvariantCulture);
179
Context.Request.Headers[thirdHeaderKey.
Name
] = DateTimeOffset.Now.ToString("R", CultureInfo.InvariantCulture);
HeaderRegistryTests.cs (1)
33
Assert.Equal(CommonHeaders.Date.HeaderName, key.
Name
);