( protocol: string, requestOptions?: RequestOptions, )
| 20 | |
| 21 | // Note that request options proxy (per model) takes precedence over environment variables |
| 22 | export function getProxy( |
| 23 | protocol: string, |
| 24 | requestOptions?: RequestOptions, |
| 25 | ): string | undefined { |
| 26 | if (requestOptions?.proxy) { |
| 27 | return requestOptions.proxy; |
| 28 | } |
| 29 | return getProxyFromEnv(protocol); |
| 30 | } |
| 31 | |
| 32 | export function getEnvNoProxyPatterns(): string[] { |
| 33 | const envValue = process.env.NO_PROXY || process.env.no_proxy; |
no test coverage detected