C# Class System.UriBuilderExtensions

Exibir arquivo Open project: TargetProcess/Target-Process-Plugins

Public Methods

Method Description
GetQueryParams ( this uri ) : string>>.IEnumerable
IsSsl ( this url, NameValueCollection headers ) : bool
PatchFromHeaders ( this baseUri, NameValueCollection headers ) : UriBuilder
SetQueryParameter ( this uri, string name, string value, bool skipNullValues = false ) : UriBuilder
SetQueryParameters ( this uri, NameValueCollection queryParameters, bool skipEmptyValues = false ) : UriBuilder
SetQueryParameters ( this uri, object data ) : UriBuilder

Private Methods

Method Description
AsKeyValuePairs ( this collection ) : string>>.IEnumerable
IsSsl ( string scheme, NameValueCollection headers ) : bool
ParseQuery ( this uri ) : NameValueCollection
PrepareFromOrigin ( string origin, UriBuilder baseUri ) : UriBuilder

Method Details

GetQueryParams() public static method

public static GetQueryParams ( this uri ) : string>>.IEnumerable
uri this
return string>>.IEnumerable

IsSsl() public static method

public static IsSsl ( this url, NameValueCollection headers ) : bool
url this
headers System.Collections.Specialized.NameValueCollection
return bool

PatchFromHeaders() public static method

public static PatchFromHeaders ( this baseUri, NameValueCollection headers ) : UriBuilder
baseUri this
headers System.Collections.Specialized.NameValueCollection
return UriBuilder

SetQueryParameter() public static method

public static SetQueryParameter ( this uri, string name, string value, bool skipNullValues = false ) : UriBuilder
uri this
name string
value string
skipNullValues bool
return UriBuilder

SetQueryParameters() public static method

public static SetQueryParameters ( this uri, NameValueCollection queryParameters, bool skipEmptyValues = false ) : UriBuilder
uri this
queryParameters System.Collections.Specialized.NameValueCollection
skipEmptyValues bool
return UriBuilder

SetQueryParameters() public static method

public static SetQueryParameters ( this uri, object data ) : UriBuilder
uri this
data object
return UriBuilder