Get the value of the query parameter with the provided query parameter name. If no query
parameter exists with the provided name, then undefined will be returned.
If the provided searchValue is found in this URLBuilder, then replace it with the provided
replaceValue.
Parameters
searchValue: string
replaceValue: string
Returns void
setHost
setHost(host: string | undefined): void
Set the host for this URL. If the provided host contains other parts of a URL (such as a
port, path, or query), those parts will be added to this URL as well.
Parameters
host: string | undefined
Returns void
setPath
setPath(path: string | undefined): void
Set the path for this URL. If the provided path contains a query, then it will be added to
this URL as well.
Parameters
path: string | undefined
Returns void
setPort
setPort(port: number | string | undefined): void
Set the port for this URL. If the provided port contains other parts of a URL (such as a
path or query), those parts will be added to this URL as well.
Set a query parameter with the provided name and value in this URL's query. If the provided
query parameter value is undefined or empty, then the query parameter will be removed if it
existed.
Parameters
queryParameterName: string
queryParameterValue: any
Returns void
setScheme
setScheme(scheme: string | undefined): void
Set the scheme/protocol for this URL. If the provided scheme contains other parts of a URL
(such as a host, port, path, or query), those parts will be added to this URL as well.
A class that handles creating, modifying, and parsing URLs.