Decode url

angerangel edited this page Jan 3, 2013 · 3 revisions
Clone this wiki locally

Table of Contents

USAGE

  DECODE-URL url

DESCRIPTION

Decode a URL according to rules of sys/*parse-url. DECODE-URL is a function value.

ARGUMENTS

  • url

SOURCE

decode-url: make function! [  ["Decode a URL according to rules of sys/*parse-url." url][
    --- {This function is bound in the context of sys/*parse-url.}
    out: make block! 8
    parse/all url rules
    out
] ] 

Example

 >>  decode-url http://www.google.it/max.tt
 == [ scheme: 'http host: "www.google.it" path: "/max.tt"  ]