@@ -13,7 +13,6 @@ import (
1313 "time"
1414
1515 "github.com/deploymenttheory/go-api-http-client/logger"
16- "github.com/deploymenttheory/go-api-http-client/proxy"
1716 "github.com/deploymenttheory/go-api-http-client/redirecthandler"
1817 "go.uber.org/zap"
1918)
@@ -39,7 +38,6 @@ type ClientConfig struct {
3938 Auth AuthConfig // User can either supply these values manually or pass from LoadAuthConfig/Env vars
4039 Environment EnvironmentConfig // User can either supply these values manually or pass from LoadAuthConfig/Env vars
4140 ClientOptions ClientOptions // Optional configuration options for the HTTP Client
42- Proxy ProxyConfig // Proxy configuration options for the HTTP Client
4341}
4442
4543// AuthConfig represents the structure to read authentication details from a JSON configuration file.
@@ -74,13 +72,6 @@ type ClientOptions struct {
7472 CustomTimeout time.Duration
7573}
7674
77- type ProxyConfig struct {
78- ProxyURL string `json:"ProxyURL,omitempty"`
79- ProxyUsername string `json:"ProxyUsername,omitempty"`
80- ProxyPassword string `json:"ProxyPassword,omitempty"`
81- ProxyAuthToken string `json:"ProxyAuthToken,omitempty"`
82- }
83-
8475// ClientPerformanceMetrics captures various metrics related to the client's
8576// interactions with the API, providing insights into its performance and behavior.
8677type PerformanceMetrics struct {
@@ -136,11 +127,6 @@ func BuildClient(config ClientConfig) (*Client, error) {
136127 return nil , err
137128 }
138129
139- // Conditionally Initialize the proxy if provided in the configuration
140- if err := proxy .InitializeProxy (httpClient , config .Proxy .ProxyURL , config .Proxy .ProxyUsername , config .Proxy .ProxyPassword , config .Proxy .ProxyAuthToken , log ); err != nil {
141- return nil , err
142- }
143-
144130 // Create a new HTTP client with the provided configuration.
145131 client := & Client {
146132 APIHandler : apiHandler ,
0 commit comments