PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.UriExtensions Class Reference

Provides extensions for Uri objects and url strings. More...

Static Public Member Functions

static Uri Root (this Uri uri)
 Find the root of the uri (schema, host, and, if required, port)
static string UriRoot (this string str)
 Convert the string to an Uri and return the Root()

Detailed Description

Provides extensions for Uri objects and url strings.

Member Function Documentation

◆ Root()

Uri PeanutButter.Utils.UriExtensions.Root ( this Uri uri)
static

Find the root of the uri (schema, host, and, if required, port)

Parameters
uri
Returns

◆ UriRoot()

string PeanutButter.Utils.UriExtensions.UriRoot ( this string str)
static

Convert the string to an Uri and return the Root()

Parameters
str
Returns

The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.Utils/UriExtensions.cs