abs-url (proc)
public {abs-url str:String}:Url
Package: CURL.IO.FILE

Parse a String representing an absolute URL, producing a Url.

str: The String being parsed into a Url.

Description

An absolute URL starts with a scheme-name, followed by a colon:
scheme:
A valid URL varies with the scheme, but for http:, https:, file:, and some curl:, the special characters '%', '?', and '#' have special meaning, and must be encoded if they should not have these special meanings (see url-encode-filename), and the path components '.' and '..' are illegal.

Notes

For heuristic conversion from unstructured strings (such as user input) to Urls, see parse-url.

Resolving a relative URL can be accomplished by calling parse-url (specifying the relative keyword), working-url or url, Url.merge or Url.concat.

Throws

IOException — if str doesn't conform to URL syntax.