Lines Matching refs:parsed
138 * @param {URL} parsed
141 function fetchWithRedirects(parsed) {
142 const existing = cacheForGET.get(parsed.href);
146 const handler = parsed.protocol === 'http:' ? HTTPGet : HTTPSGet;
148 const req = handler(parsed, {
157 const location = new URL(res.headers.location, parsed);
161 parsed.href,
166 cacheForGET.set(parsed.href, entry);
170 const err = new ERR_MODULE_NOT_FOUND(parsed.href, null, parsed);
171 err.message = `Cannot find module '${parsed.href}', HTTP 404`;
179 parsed.href,
186 parsed.href,
194 resolvedHREF: parsed.href,
214 cacheForGET.set(parsed.href, entry);
221 cacheForGET.set(parsed.href, result);
261 * @param {URL} parsed
265 function fetchModule(parsed, { parentURL }) {
266 const { href } = parsed;
271 if (parsed.protocol === 'http:') {
272 return PromisePrototypeThen(isLocalAddress(parsed.hostname), (is) => {
280 return fetchWithRedirects(parsed);
283 return fetchWithRedirects(parsed);