WHATWG URL Standard

The web standard for parsing URLs, implemented by the global URL class in browsers and Node.js.

In more detail

new URL(req.url, "http://localhost") splits a request path into pathname and searchParams correctly, including encoded characters. It replaces Node.js's legacy url.parse().

Related terms

Taught in

References