Uri
struct Uri
A URI object.
set_query
pub fn set_query(self, query: string?) throws InvalidUriError
Sets the query string of the URI.
set_query
pub fn set_query(self, query: string?) throws InvalidUriError
Sets the query string of the URI.
Sets the query string of the URI.
Returns the query string of the URI.
Returns the query string of the URI.
Returns the query string of the URI.
set_path
pub fn set_path(self, path: string) throws InvalidUriError
Sets the path of the URI.
set_path
pub fn set_path(self, path: string) throws InvalidUriError
Sets the path of the URI.
Sets the path of the URI.
set_path_and_query
pub fn set_path_and_query(self, authority: string?) throws InvalidUriError
Sets the path and query of the URI.
set_path_and_query
pub fn set_path_and_query(self, authority: string?) throws InvalidUriError
Sets the path and query of the URI.
Sets the path and query of the URI.
path_and_query
pub fn path_and_query(self): string?
Returns the path and query of the URI.
path_and_query
pub fn path_and_query(self): string?
Returns the path and query of the URI.
Returns the path and query of the URI.
set_port
pub fn set_port(self, port: int?) throws InvalidUriError
Sets the port of the URI.
set_port
pub fn set_port(self, port: int?) throws InvalidUriError
Sets the port of the URI.
Sets the port of the URI.
set_host
pub fn set_host(self, host: string?) throws InvalidUriError
Sets the host of the URI.
set_host
pub fn set_host(self, host: string?) throws InvalidUriError
Sets the host of the URI.
Sets the host of the URI.
set_authority
pub fn set_authority(self, authority: string?) throws InvalidUriError
Sets the authority of the URI.
set_authority
pub fn set_authority(self, authority: string?) throws InvalidUriError
Sets the authority of the URI.
Sets the authority of the URI.
Returns the authority of the URI.
Returns the authority of the URI.
Returns the authority of the URI.
The authority is a hierarchical element for naming authority such that the remainder of the URI is delegated to that authority. For HTTP, the authority consists of the host and port. The host portion of the authority is case-insensitive.
set_scheme
pub fn set_scheme(self, scheme: string?) throws InvalidUriError
Sets the scheme of the URI.
set_scheme
pub fn set_scheme(self, scheme: string?) throws InvalidUriError
Sets the scheme of the URI.
Sets the scheme of the URI.
parse
pub fn parse(uri: string): Uri throws InvalidUriError
Parses a URI from a string.
parse
pub fn parse(uri: string): Uri throws InvalidUriError
Parses a URI from a string.
Parses a URI from a string.