MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / HttpClientsFactory

Interface HttpClientsFactory

controllers/workspace/http.go:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38var httpClientsFactory HttpClientsFactory
39
40type 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

Callers 4

ReconcileMethod · 0.65
TestGetHttpClientFunction · 0.65
checkServerStatusFunction · 0.65

Implementers 2

DefaultHttpClientsFactorycontrollers/workspace/http.go
TestHttpClientsFactorycontrollers/workspace/http_test.go

Calls

no outgoing calls

Tested by

no test coverage detected