12 references to TryGetHeaderValue
Microsoft.AspNetCore.HeaderParsing (2)
HeaderParsingFeature.cs (1)
46
return
TryGetHeaderValue
(header, out value, out _);
HeaderParsingHttpRequestExtensions.cs (1)
67
.
TryGetHeaderValue
(Throw.IfNull(header), out value, out result);
Microsoft.AspNetCore.HeaderParsing.Tests (10)
HeaderParsingFeatureTests.cs (10)
53
Assert.True(feature.
TryGetHeaderValue
(key, out var value, out var _));
72
Assert.True(feature.
TryGetHeaderValue
(key, out var value, out var result));
78
Assert.True(feature.
TryGetHeaderValue
(key2, out var textValue, out result));
96
Assert.True(feature.
TryGetHeaderValue
(key, out var value, out var result));
109
Assert.False(feature.
TryGetHeaderValue
(key, out var value, out var _));
126
Assert.True(feature.
TryGetHeaderValue
(key, out var value, out var result));
144
Assert.False(feature.
TryGetHeaderValue
(key, out var value, out var result));
202
Assert.True(feature.
TryGetHeaderValue
(key, out var value1, out var error1));
203
Assert.True(feature.
TryGetHeaderValue
(key, out var value2, out var error2));
204
Assert.True(feature2.
TryGetHeaderValue
(key, out var value3, out var error3));