@@ -60,7 +60,7 @@ type EnvironmentConfig struct {
6060// ClientOptions holds optional configuration options for the HTTP Client.
6161type ClientOptions struct {
6262 Logging LoggingConfig // Configuration related to logging
63- Cookie CookieConfig // Cookie handling settings
63+ Cookies CookieConfig // Cookie handling settings
6464 Retry RetryConfig // Retry behavior configuration
6565 Concurrency ConcurrencyConfig // Concurrency configuration
6666 Timeout TimeoutConfig // Custom timeout settings
@@ -79,7 +79,7 @@ type LoggingConfig struct {
7979// CookieConfig holds configuration related to cookie handling.
8080type CookieConfig struct {
8181 EnableCookieJar bool // Enable or disable cookie jar
82- SpecificCookies map [string ]string `json:"SpecificCookies ,omitempty"` // Key-value pairs for specific cookies
82+ CustomCookies map [string ]string `json:"CustomCookies ,omitempty"` // Key-value pairs for setting specific cookies
8383}
8484
8585// RetryConfig holds configuration related to retry behavior.
@@ -156,7 +156,7 @@ func BuildClient(config ClientConfig) (*Client, error) {
156156 }
157157
158158 // Conditionally setup cookie jar
159- if err := cookiejar .SetupCookieJar (httpClient , config .ClientOptions .Cookie .EnableCookieJar , log ); err != nil {
159+ if err := cookiejar .SetupCookieJar (httpClient , config .ClientOptions .Cookies .EnableCookieJar , log ); err != nil {
160160 log .Error ("Error setting up cookie jar" , zap .Error (err ))
161161 return nil , err
162162 }
@@ -200,7 +200,7 @@ func BuildClient(config ClientConfig) (*Client, error) {
200200 zap .String ("Log Encoding Format" , config .ClientOptions .Logging .LogOutputFormat ),
201201 zap .String ("Log Separator" , config .ClientOptions .Logging .LogConsoleSeparator ),
202202 zap .Bool ("Hide Sensitive Data In Logs" , config .ClientOptions .Logging .HideSensitiveData ),
203- zap .Bool ("Cookie Jar Enabled" , config .ClientOptions .Cookie .EnableCookieJar ),
203+ zap .Bool ("Cookie Jar Enabled" , config .ClientOptions .Cookies .EnableCookieJar ),
204204 zap .Int ("Max Retry Attempts" , config .ClientOptions .Retry .MaxRetryAttempts ),
205205 zap .Bool ("Enable Dynamic Rate Limiting" , config .ClientOptions .Retry .EnableDynamicRateLimiting ),
206206 zap .Int ("Max Concurrent Requests" , config .ClientOptions .Concurrency .MaxConcurrentRequests ),
0 commit comments