C# Class Canonicalize.Strategies.TrailingSlashStrategy

URL canonicalization strategy ensuring a slash as the last character of the path for non-file URLs.
Inheritance: IUrlStrategy
Afficher le fichier Open project: schourode/canonicalize Class Usage Examples

Méthodes publiques

Méthode Description
Apply ( UriBuilder uri ) : void

Adds a forward slash (/) to the end of the part segment of the URL, if not already present. No slash is added if the URL contains a period (.) indicating a file extension.

Method Details

Apply() public méthode

Adds a forward slash (/) to the end of the part segment of the URL, if not already present. No slash is added if the URL contains a period (.) indicating a file extension.
public Apply ( UriBuilder uri ) : void
uri System.UriBuilder The URL to be canonicalized.
Résultat void