Struct URL
A Unique Resource Locator.
struct URL(U)
if (isSomeString!U);
Constructors
Name | Description |
---|---|
this
(source)
|
Attempts to parse an URL from a string. Output string data (scheme, user, etc.) are just slices of input string (e.g., no memory allocation and copying). |
Fields
Name | Type | Description |
---|---|---|
fragment
|
U | The anchor. |
host
|
U | The hostname. |
pass
|
U | The password. |
path
|
U | The path. |
port
|
ushort | The port number. |
query
|
U | The query string. |
scheme
|
U | The URL scheme. |
user
|
U | The username. |
Methods
Name | Description |
---|---|
parsePort
(port)
|
Attempts to parse and set the port. |
Parameters
Name | Description |
---|---|
U | URL string type. |