Module

std/node/url.ts

Deno standard library
Go to Latest
function parse
import { parse } from "https://deno.land/std@0.145.0/node/url.ts";

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

Parameters

url: string | Url

The URL string to parse.

parseQueryString: boolean

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

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