C# Class Canonicalize.Strategies.TrailingSlashStrategy

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

Public Methods

Method 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 method

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