12 references to TryGetHeaderValue
Microsoft.AspNetCore.HeaderParsing (2)
HeaderParsingFeature.cs (1)
46return 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)
53Assert.True(feature.TryGetHeaderValue(key, out var value, out var _)); 72Assert.True(feature.TryGetHeaderValue(key, out var value, out var result)); 78Assert.True(feature.TryGetHeaderValue(key2, out var textValue, out result)); 96Assert.True(feature.TryGetHeaderValue(key, out var value, out var result)); 109Assert.False(feature.TryGetHeaderValue(key, out var value, out var _)); 126Assert.True(feature.TryGetHeaderValue(key, out var value, out var result)); 144Assert.False(feature.TryGetHeaderValue(key, out var value, out var result)); 202Assert.True(feature.TryGetHeaderValue(key, out var value1, out var error1)); 203Assert.True(feature.TryGetHeaderValue(key, out var value2, out var error2)); 204Assert.True(feature2.TryGetHeaderValue(key, out var value3, out var error3));