Class HostFilter
- Namespace
- Fluxzy.Rules.Filters.RequestFilters
- Assembly
- Fluxzy.Core.dll
Select exchanges according to host. The host is taken from the Host header (HTTP/1.1) or the :authority header (H2).
[FilterMetaData(null, LongDescription = "Select exchanges according to hostname (excluding port). To select authority (combination of host:port), use <goto>AuthorityFilter</goto>.")]
public class HostFilter : StringFilter
- Inheritance
-
HostFilter
- Inherited Members
- Extension Methods
Constructors
HostFilter(string)
public HostFilter(string pattern)
Parameters
pattern
string
HostFilter(string, StringSelectorOperation)
[JsonConstructor]
public HostFilter(string pattern, StringSelectorOperation operation)
Parameters
pattern
stringoperation
StringSelectorOperation
Properties
AutoGeneratedName
public override string AutoGeneratedName { get; }
Property Value
Common
public override bool Common { get; set; }
Property Value
FilterScope
public override FilterScope FilterScope { get; }
Property Value
GenericName
public override string GenericName { get; }
Property Value
ShortName
public override string? ShortName { get; }
Property Value
Methods
GetExamples()
public override IEnumerable<FilterExample> GetExamples()
Returns
GetMatchInputs(ExchangeContext?, IAuthority, IExchange?)
protected override IEnumerable<string> GetMatchInputs(ExchangeContext? exchangeContext, IAuthority authority, IExchange? exchange)
Parameters
exchangeContext
ExchangeContextauthority
IAuthorityexchange
IExchange