Interface IUrlUtility
Provides URL utility methods.
Namespace: ComponentSpace.Saml2.Utility
Assembly: ComponentSpace.Saml2.dll
Syntax
public interface IUrlUtility
Methods
AppendPath(string, string)
Appends a path to the URL.
Declaration
string AppendPath(string url, string path)
Parameters
Type | Name | Description |
---|---|---|
string | url | The URL. |
string | path | The path. |
Returns
Type | Description |
---|---|
string | The combined URL and path. |
IsAbsoluteUrl(string)
Indicates whether the URL is absolute.
Declaration
bool IsAbsoluteUrl(string url)
Parameters
Type | Name | Description |
---|---|---|
string | url | The URL. |
Returns
Type | Description |
---|---|
bool |
|
LogRequest()
Logs the HTTP request.
Declaration
void LogRequest()
ToAbsoluteUrl(string)
Converts a relative URL to an absolute URL.
Declaration
string ToAbsoluteUrl(string url)
Parameters
Type | Name | Description |
---|---|---|
string | url | The relative URL. |
Returns
Type | Description |
---|---|
string | The absolute URL. |
ToHttpsUrl(string)
Converts an HTTPS URL to an HTTPS URL.
Declaration
string ToHttpsUrl(string url)
Parameters
Type | Name | Description |
---|---|---|
string | url | The HTTP URL. |
Returns
Type | Description |
---|---|
string | The HTTPS URL. |