Module URL

This module is undocumented. This is a list of its definitions.

getURLHost :: URL -> String

The host part of the URL.

getURLPath :: URL -> String

The path part of the URL.

getURLPort :: URL -> Integer

The port of the URL, or -1 if the URL does not specify one.

getURLQuery :: URL -> String

The query part of the URL, i.e. the part after the first ?.

getURLScheme :: URL -> String

The scheme of the URL, for example http.

url :: String -> String -> Integer -> String -> URL

url scheme host port file constructs a URL from its parts. A port of -1 means the default port of the scheme.

urlSimple :: String -> URL

Constructs a URL from the given string representation.

urlToString :: URL -> String

The string representation of the URL.