1 instantiation of HeaderParsingFeature
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingFeature.cs (1)
99Feature = new HeaderParsingFeature(registry, logger, metrics);
24 references to HeaderParsingFeature
Microsoft.AspNetCore.HeaderParsing (12)
HeaderParsingFeature.cs (4)
29internal HeaderParsingFeature(IHeaderRegistry registry, ILogger<HeaderParsingFeature> logger, HeaderParsingMetrics metrics) 88public HeaderParsingFeature Feature { get; } 95ILogger<HeaderParsingFeature> logger, 135public bool Process(HeaderParsingFeature feature, HeaderKey<T> header, out T? value, out ParsingResult result)
HeaderParsingHttpRequestExtensions.cs (4)
21public static HeaderParsingFeature GetHeaderParsing(this HttpRequest request) 25var feature = context.Features.Get<HeaderParsingFeature>(); 29feature = context.RequestServices.GetRequiredService<HeaderParsingFeature>();
HeaderParsingServiceCollectionExtensions.cs (4)
26if (!Throw.IfNull(services).Any(x => x.ServiceType == typeof(HeaderParsingFeature.PoolHelper))) 29.AddPooled<HeaderParsingFeature.PoolHelper>() 32.AddScoped(provider => provider.GetRequiredService<ObjectPool<HeaderParsingFeature.PoolHelper>>().Get()) 33.AddScoped(provider => provider.GetRequiredService<HeaderParsingFeature.PoolHelper>().Feature)
Microsoft.AspNetCore.HeaderParsing.Tests (12)
HeaderParsingExtensionsTests.cs (1)
96var feature = context.Request.GetHeaderParsing();
HeaderParsingFeatureTests.cs (11)
25private readonly FakeLogger<HeaderParsingFeature> _logger = new(); 51var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 70var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 92var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 106var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 123var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 141var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 163var pool = new Mock<ObjectPool<HeaderParsingFeature.PoolHelper>>(MockBehavior.Strict); 164var helper = new HeaderParsingFeature.PoolHelper(pool.Object, Registry, _logger, metrics); 198var feature = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context }; 199var feature2 = new HeaderParsingFeature(Registry, _logger, metrics) { Context = Context };