C# Class Recognos.Core.UriExtensions

Useful extensions for Uri processing.
Mostrar archivo Open project: Recognos/Recognos.Core

Public Methods

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

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

IsWeb() public static method

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

ResolveRedirects() public static method

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

ResolveRedirects() public static method

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