C# Класс Stumps.Rules.HeaderRule

A class representing a Stump rule that evaluates the headers of an HTTP request.
Наследование: IStumpRule
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetRuleSettings ( ) : IEnumerable

Gets an enumerable list of T:Stumps.RuleSetting objects used to represent the current instance.

HeaderRule ( ) : System

Initializes a new instance of the T:Stumps.Rules.HeaderRule class.

HeaderRule ( string name, string value ) : System

Initializes a new instance of the T:Stumps.Rules.HeaderRule class.

InitializeFromSettings ( IEnumerable settings ) : void

Initializes a rule from an enumerable list of T:Stumps.RuleSetting objects.

IsMatch ( IStumpsHttpRequest request ) : bool

Determines whether the specified request matches the rule.

Приватные методы

Метод Описание
InitializeRule ( string name, string value ) : void

Initializes the rule.

Описание методов

GetRuleSettings() публичный Метод

Gets an enumerable list of T:Stumps.RuleSetting objects used to represent the current instance.
public GetRuleSettings ( ) : IEnumerable
Результат IEnumerable

HeaderRule() публичный Метод

Initializes a new instance of the T:Stumps.Rules.HeaderRule class.
public HeaderRule ( ) : System
Результат System

HeaderRule() публичный Метод

Initializes a new instance of the T:Stumps.Rules.HeaderRule class.
public HeaderRule ( string name, string value ) : System
name string The name of the HTTP header.
value string The value of the HTTP header.
Результат System

InitializeFromSettings() публичный Метод

Initializes a rule from an enumerable list of T:Stumps.RuleSetting objects.
public InitializeFromSettings ( IEnumerable settings ) : void
settings IEnumerable The enumerable list of objects.
Результат void

IsMatch() публичный Метод

Determines whether the specified request matches the rule.
public IsMatch ( IStumpsHttpRequest request ) : bool
request IStumpsHttpRequest The to evaluate.
Результат bool