C# Class Recognos.Core.UriExtensions

Useful extensions for Uri processing.
Afficher le fichier Open project: Recognos/Recognos.Core

Méthodes publiques

Méthode Description
ExtractUris ( this input ) : IEnumerable

Extracts the uris from a string.

IsWeb ( this uri ) : bool

Determines whether the specified URI is a web uri (http or https).

ResolveRedirects ( this uri ) : Uri

Resolves the redirects for the specified URI is required.

If http errors are encountered the input uri is returned.

ResolveRedirects ( this uri, Uri>.Func error ) : Uri

Resolves the redirects for the specified URI is required.

Method Details

ExtractUris() public static méthode

Extracts the uris from a string.
public static ExtractUris ( this input ) : IEnumerable
input this The input string.
Résultat IEnumerable

IsWeb() public static méthode

Determines whether the specified URI is a web uri (http or https).
public static IsWeb ( this uri ) : bool
uri this The URI.
Résultat bool

ResolveRedirects() public static méthode

Resolves the redirects for the specified URI is required.
If http errors are encountered the input uri is returned.
public static ResolveRedirects ( this uri ) : Uri
uri this The URI.
Résultat System.Uri

ResolveRedirects() public static méthode

Resolves the redirects for the specified URI is required.
public static ResolveRedirects ( this uri, Uri>.Func error ) : Uri
uri this The URI.
error Uri>.Func Action to be performed when http error is encountered.
Résultat System.Uri