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

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

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

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

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

HttpMethodRule ( ) : System

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

HttpMethodRule ( string httpMethod ) : System

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

InitializeFromSettings ( IEnumerable settings ) : void

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

InitializeRule ( string httpMethod ) : void

Initializes the rule.

IsMatch ( IStumpsHttpRequest request ) : bool

Determines whether the specified request matches the rule.

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

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

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

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

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

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

Initializes a new instance of the T:Stumps.Rules.HttpMethodRule class.
public HttpMethodRule ( string httpMethod ) : System
httpMethod string The HTTP method for the rule.
Результат 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

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

Initializes the rule.
public InitializeRule ( string httpMethod ) : void
httpMethod string The HTTP method for the rule.
Результат void

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

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