url-builder

Create an URL

Creates an URL from a protocol, hostname, port, and pathname.

Arguments

Inputs:

protocol: The protocol used to reach the target, e.g. http or https.

hostname: The domain or IP address of the target.

port: The port the host is exposing. If unspecified, defaults to "" (blank).

update: The pathname to the resource of the target. If unspecified, defaults to "" (blank).

Output:

url: The new url.

Last updated