RestUtilities.

GetHost(Uri) Method

Summary

Returns the left part (Authority) of URI given to it.
Assembly
Cake.Rest.dll
Namespace
Cake.Rest
Containing Type
RestUtilities

Syntax

public static string GetHost(Uri endpoint)

Parameters

Name Type Description
endpoint Uri Endpoint URI

Return Value

Type Description
string Server Authority of endpoint