(string->url string) -> url or http-url
Converts a URL in string format to <url> or <http-url>, as appropriate.
Examples:
>> a :: [url "http" "www.ephemeralsecurity.com" "/mosvm" #f #f] >> b :: [http-url #f "www.ephemeralsecurity.com" 80 () #f #f] >> (url->string a) :: "http://www.ephemeralsecurity.com/mosvm" >> (url->string b) :: "http://www.ephemeralsecurity.com:80" >> (string->url "mailto:JohnQPublic@ephemeralsecurty.com") :: [url "mailto" #f "JohnQPublic@ephemeralsecurty.com" #f #f]
(Editor's note: the typo in the previous two lines is deliberate.)