Deno standard library
Go to Latest
function parse
import { parse } from "";

The url.urlParse() method takes a URL string, parses it, and returns a URL object.


url: string | Url[src]

The URL string to parse.

parseQueryString: boolean[src]

If true, the query property will always be set to an object returned by the querystring module's parse() method. If false, the query property on the returned URL object will be an unparsed, undecoded string. Default: false.

slashesDenoteHost: boolean[src]

If true, the first token after the literal string // and preceding the next / will be interpreted as the host