C# 클래스 Canonicalize.Strategies.HostStrategy

URL canonicalization strategy enforcing use of a specific DNS host name or IP address.
상속: IUrlStrategy
파일 보기 프로젝트 열기: schourode/canonicalize 1 사용 예제들

공개 메소드들

메소드 설명
Apply ( UriBuilder uri ) : void

Replaces the host part of the URL with the canonical host.

HostStrategy ( string host ) : System

Initializes a HostStrategy with a specific DNS host name or IP address.

메소드 상세

Apply() 공개 메소드

Replaces the host part of the URL with the canonical host.
public Apply ( UriBuilder uri ) : void
uri System.UriBuilder The URL to be canonicalized.
리턴 void

HostStrategy() 공개 메소드

Initializes a HostStrategy with a specific DNS host name or IP address.
public HostStrategy ( string host ) : System
host string Canonical DNS host name or IP address.
리턴 System