C# Class Canonicalize.Strategies.HostStrategy

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

Méthodes publiques

Méthode 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 méthode

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

HostStrategy() public méthode

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.
Résultat System