MCPcopy
hub / github.com/serverless/serverless / getProxyUrl

Function getProxyUrl

packages/sf-core-installer/binary.js:50–62  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

48}
49
50const getProxyUrl = (url) => {
51 const requestURL = new URL(url)
52
53 if (shouldBypassProxy(requestURL)) return null
54
55 if (requestURL.protocol === 'http:') {
56 return process.env.HTTP_PROXY || process.env.http_proxy || null
57 }
58 if (requestURL.protocol === 'https:') {
59 return process.env.HTTPS_PROXY || process.env.https_proxy || null
60 }
61 return null
62}
63
64class Binary {
65 constructor(name, url, version, config) {

Callers 1

installMethod · 0.70

Calls 1

shouldBypassProxyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…