Format
Overview
A convenience function that makes it easy to construct a URL string from it's component parts.
Input Fields
-
protocol: the URL protocol field: http, https, etc
-
host: the host name
-
port: the port number (typically: 80 for http, 443 for https)
-
path: the resource path within the host
-
query: the query string (optional) without the ?
Output Fields
- url: the formatted URL string