Table of Contents

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 string
operation StringSelectorOperation

Properties

AutoGeneratedName

public override string AutoGeneratedName { get; }

Property Value

string

Common

public override bool Common { get; set; }

Property Value

bool

FilterScope

public override FilterScope FilterScope { get; }

Property Value

FilterScope

GenericName

public override string GenericName { get; }

Property Value

string

ShortName

public override string? ShortName { get; }

Property Value

string

Methods

GetExamples()

public override IEnumerable<FilterExample> GetExamples()

Returns

IEnumerable<FilterExample>

GetMatchInputs(ExchangeContext?, IAuthority, IExchange?)

protected override IEnumerable<string> GetMatchInputs(ExchangeContext? exchangeContext, IAuthority authority, IExchange? exchange)

Parameters

exchangeContext ExchangeContext
authority IAuthority
exchange IExchange

Returns

IEnumerable<string>