Class URIUtils
URI handling helpers
Inheritance
System.Object
URIUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX
Assembly: NFX.dll
Syntax
public static class URIUtils
Fields
PATH_JOIN_TRIM_CHARS
Declaration
public static readonly char[] PATH_JOIN_TRIM_CHARS
Field Value
Type | Description |
---|---|
System.Char[] |
Methods
ComposeURLQueryString(IDictionary<String, Object>)
Declaration
public static string ComposeURLQueryString(IDictionary<string, object> qParams)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | qParams |
Returns
Type | Description |
---|---|
System.String |
EscapeAllDataStringChars(String)
Escapes all chars except latin A..Z, 0..9, and . - _ This function is based on EscapeDataString but does not depend on .NET 4/4.5 differences encoding ! * ( ) and others...
Declaration
public static string EscapeAllDataStringChars(this string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str |
Returns
Type | Description |
---|---|
System.String |
EscapeURIDataStringWithQuotes(String)
Performs URI.EscapeDataString with additional replacement of " and ' chars with their hex equivalents. This method is suitable for escaping client-side intelligent keys that may have single/double quotes
Declaration
public static string EscapeURIDataStringWithQuotes(this string uri)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri |
Returns
Type | Description |
---|---|
System.String |
EscapeURIStringWithPlus(String)
Performs escaping plus sign in URL into its hex value
Declaration
public static string EscapeURIStringWithPlus(this string uri)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri |
Returns
Type | Description |
---|---|
System.String |
JoinPathSegs(String[])
Joins URI path segments with "/". This function just concats strings, it does not evaluate relative paths etc. The first segment may or may not start with '/'
Declaration
public static string JoinPathSegs(params string[] segments)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | segments |
Returns
Type | Description |
---|---|
System.String |