Struct URL
Represents a URL
decomposed into its components.
Constructors
Name | Description |
---|---|
this | Constructs a new URL object from its components. |
this | Constructs a URL from its string representation. |
this | Constructs a new URL object from its components. |
Properties
Name | Type | Description |
---|---|---|
anchor | string | The anchor part of the URL (optional) |
host | string | The host part of the URL (depends on the schema ) |
localURI | string | The path part plus query string and anchor |
parentURL | URL | The URL to the parent path with query string and anchor stripped. |
password | string | The password part of the URL (optional) |
path | Path | The path part of the URL |
pathString | string | The path part of the URL in the original string form |
port | ushort | The port part of the URL (optional) |
queryString | string | The query string part of the URL (optional) |
schema | string | The schema /protocol part of the URL |
username | string | The user name part of the URL (optional) |
Methods
Name | Description |
---|---|
opBinary | |
opBinary | |
opCmp | |
opEquals | Tests two URLs for equality using '=='. |
opOpAssign | |
opOpAssign | |
parse | Constructs a URL from its string representation. |
startsWith | |
toString | Converts this URL object to its string representation. |
Aliases
Name | Description |
---|---|
parentUrl | Compatibility alias, will be deprecated soon. |
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.