Lines Matching refs:url
50 // WHATWG URL implementation provided by internal/url
62 } = require('internal/url');
64 const bindingUrl = internalBinding('url');
68 // Original url.parse() API
127 function urlParse(url, parseQueryString, slashesDenoteHost) {
131 '`url.parse()` behavior is not standardized and prone to ' +
133 'instead. CVEs are not issued for `url.parse()` vulnerabilities.',
139 if (url instanceof Url) return url;
142 urlObject.parse(url, parseQueryString, slashesDenoteHost);
165 // [1]: https://url.spec.whatwg.org/#forbidden-host-code-point
170 Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
171 validateString(url, 'url');
182 for (let i = 0, inWs = false, split = false; i < url.length; ++i) {
183 const code = url.charCodeAt(i);
217 rest += url.slice(lastPos, i);
234 rest = url;
236 rest = url.slice(start);
238 rest = url.slice(start, end);
240 } else if (end === -1 && lastPos < url.length) {
242 rest += url.slice(lastPos);
245 rest += url.slice(lastPos, end);
281 // user@server is *always* interpreted as a hostname, and url
398 throw new ERR_INVALID_URL(url);
417 throw new ERR_INVALID_URL(url);
563 // Format a parsed object into a url string
565 // Ensure it's an object, and not a string url.
740 // If the relative url is empty, then there's nothing left to do here.
767 // If it's a known url protocol, then changing
828 // If the url is a non-slashed url, then relative
885 // url.resolveObject('mailto:local1@domain1', 'local2@domain2')
917 // If a url ENDs in . or .., then it must get a trailing slash.
966 // url.resolveObject('mailto:local1@domain1', 'local2@domain2')