mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-17 04:37:48 +00:00
Weekend fun with further optimisations.
This commit is contained in:
@@ -245,10 +245,12 @@ func CreateHTTPClientWithConfig(config HTTPClientConfig) *http.Client {
|
||||
|
||||
// CreateDefaultHTTPClient creates a default HTTP client using the global factory
|
||||
func CreateDefaultHTTPClient() *http.Client {
|
||||
return globalHTTPClientFactory.CreateDefaultClient()
|
||||
// Use pooled client to prevent connection exhaustion
|
||||
return CreatePooledHTTPClient(DefaultHTTPClientConfig())
|
||||
}
|
||||
|
||||
// CreateTokenHTTPClient creates a token HTTP client using the global factory
|
||||
func CreateTokenHTTPClient() *http.Client {
|
||||
return globalHTTPClientFactory.CreateTokenClient()
|
||||
// Use pooled client to prevent connection exhaustion
|
||||
return CreatePooledHTTPClient(TokenHTTPClientConfig())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user