| 38 | var httpClientsFactory HttpClientsFactory |
| 39 | |
| 40 | type HttpClientsFactory interface { |
| 41 | // GetHttpClient returns an HTTP client configured with proxy, TLS, and custom CA certificates |
| 42 | // from routingConfig. |
| 43 | GetHttpClient(context.Context, *controller.RoutingConfig) *http.Client |
| 44 | |
| 45 | // GetHealthCheckHttpClient returns an HTTP client that skips TLS verification. |
| 46 | // This client MUST only be used for workspace health/readiness checks, not for |
| 47 | // fetching external content or making security-sensitive requests. |
| 48 | GetHealthCheckHttpClient() *http.Client |
| 49 | } |
| 50 | |
| 51 | // DefaultHttpClientsFactory is a thread-safe, caching implementation of HttpClientsFactory. |
| 52 | // It caches one HTTP client and one health-check client, rebuilding either only when the |
no outgoing calls
no test coverage detected