C# 클래스 Stumps.Rules.HttpMethodRule

A class representing a Stump rule that evaluates the HTTP method of an HTTP request.
상속: IStumpRule
파일 보기 프로젝트 열기: Cayan-LLC/stumps 1 사용 예제들

공개 메소드들

메소드 설명
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