C# Class Canonicalize.Strategies.HostStrategy

URL canonicalization strategy enforcing use of a specific DNS host name or IP address.
Inheritance: IUrlStrategy
Mostra file Open project: schourode/canonicalize Class Usage Examples

Public Methods

Method Description
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.

Method Details

Apply() public method

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

HostStrategy() public method

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.
return System