Constructs a new URL object from its components.
Constructs a URL from its string representation.
Get the default port for the given schema or 0
Tests two URLs for equality using '=='.
Converts this URL object to its string representation.
The anchor part of the URL (optional)
The host part of the URL (depends on the schema)
The path part plus query string and anchor
The URL to the parent path with query string and anchor stripped.
The password part of the URL (optional)
The path part of the URL
The url encoded path part of the URL
Set the path part of the URL. It should be properly encoded.
The port part of the URL (optional)
The query string part of the URL (optional)
The schema/protocol part of the URL
The user name part of the URL (optional)
Get the default port for the given schema or 0
Constructs a URL from its string representation.
Represents a URL decomposed into its components.