|
| static Url | Explode (string url) |
| | Create Url structure object from text More...
|
| |
| static implicit | operator Url (string url) |
| | Create object from string representation More...
|
| |
| static string | SetHost (string url, string host) |
| | Set host in URL text More...
|
| |
| static string | SetPort (string url, string port) |
| | Set port in URL text More...
|
| |
| static string | SetHostAndPort (string url, string host, string port) |
| | Set host and port in URL text More...
|
| |
| static string | Make (string url, string scheme, string host, string port, string path, string query, string fragment, string user, string password, string value) |
| | Make URL address overriding parts of it. Use null as parameter to ignore or empty value to remove it. More...
|
| |
| static Url | Combine (Url url1, Url url2, bool overwrite) |
| | Combine two URLs, overwriting all or only empty values with second one. More...
|
| |
| static Url | Combine (Url url1, Url url2) |
| | Combine two URLs, overwriting empty values with second one. More...
|
| |
◆ Combine() [1/4]
| static Url Energy.Base.Url.Combine |
( |
Url |
url1, |
|
|
Url |
url2, |
|
|
bool |
overwrite |
|
) |
| |
|
static |
Combine two URLs, overwriting all or only empty values with second one.
- Parameters
-
| url1 | |
| url2 | |
| overwrite | When overwrite is true, not null parameters from second object will always be overwritten. If not, only null and empty values will be overwritten. |
- Returns
◆ Combine() [2/4]
| static Url Energy.Base.Url.Combine |
( |
Url |
url1, |
|
|
Url |
url2 |
|
) |
| |
|
static |
Combine two URLs, overwriting empty values with second one.
- Parameters
-
- Returns
◆ Combine() [3/4]
| Url Energy.Base.Url.Combine |
( |
Url |
url, |
|
|
bool |
overwrite |
|
) |
| |
Combine with another URL, overwriting all or only empty values.
- Parameters
-
| url | |
| overwrite | When overwrite is true, not null parameters from second object will always be overwritten. If not, only null and empty values will be overwritten. |
- Returns
◆ Combine() [4/4]
| Url Energy.Base.Url.Combine |
( |
Url |
url | ) |
|
Combine with another URL, overwriting empty values.
- Parameters
-
- Returns
◆ Copy()
| Url Energy.Base.Url.Copy |
( |
| ) |
|
Make a copy of object
- Returns
◆ Explode()
| static Url Energy.Base.Url.Explode |
( |
string |
url | ) |
|
|
static |
Create Url structure object from text
- Parameters
-
- Returns
◆ Make()
| static string Energy.Base.Url.Make |
( |
string |
url, |
|
|
string |
scheme, |
|
|
string |
host, |
|
|
string |
port, |
|
|
string |
path, |
|
|
string |
query, |
|
|
string |
fragment, |
|
|
string |
user, |
|
|
string |
password, |
|
|
string |
value |
|
) |
| |
|
static |
Make URL address overriding parts of it. Use null as parameter to ignore or empty value to remove it.
- Parameters
-
| url | |
| scheme | |
| host | |
| port | |
| path | |
| query | |
| fragment | |
| user | |
| password | |
| value | Optionally replace placeholder {0} as value |
- Returns
◆ operator Url()
| static implicit Energy.Base.Url.operator Url |
( |
string |
url | ) |
|
|
static |
Create object from string representation
- Parameters
-
- Returns
◆ SetHost()
| static string Energy.Base.Url.SetHost |
( |
string |
url, |
|
|
string |
host |
|
) |
| |
|
static |
Set host in URL text
- Parameters
-
- Returns
◆ SetHostAndPort()
| static string Energy.Base.Url.SetHostAndPort |
( |
string |
url, |
|
|
string |
host, |
|
|
string |
port |
|
) |
| |
|
static |
Set host and port in URL text
- Parameters
-
- Returns
◆ SetPort()
| static string Energy.Base.Url.SetPort |
( |
string |
url, |
|
|
string |
port |
|
) |
| |
|
static |
Set port in URL text
- Parameters
-
- Returns
◆ ToString()
| override string Energy.Base.Url.ToString |
( |
| ) |
|
Represent URL structure as string
- Returns
◆ Fragment
| string Energy.Base.Url.Fragment |
◆ Host
| string Energy.Base.Url.Host |
◆ Password
| string Energy.Base.Url.Password |
◆ Path
| string Energy.Base.Url.Path |
◆ Port
| string Energy.Base.Url.Port |
◆ Query
| string Energy.Base.Url.Query |
◆ Scheme
| string Energy.Base.Url.Scheme |
◆ User
| string Energy.Base.Url.User |
The documentation for this class was generated from the following file: