(url: string)
| 261 | * Returns undefined if no proxy is configured or URL should bypass proxy. |
| 262 | */ |
| 263 | export function getWebSocketProxyUrl(url: string): string | undefined { |
| 264 | const proxyUrl = getProxyUrl() |
| 265 | |
| 266 | if (!proxyUrl) { |
| 267 | return undefined |
| 268 | } |
| 269 | |
| 270 | if (shouldBypassProxy(url)) { |
| 271 | return undefined |
| 272 | } |
| 273 | |
| 274 | return proxyUrl |
| 275 | } |
| 276 | |
| 277 | /** |
| 278 | * Get fetch options for the Anthropic SDK with proxy and mTLS configuration |
no test coverage detected