1 package subsystems 2 3 import ( 4 "net/http" 5 ) 6 7 // HTTPConfiguration encapsulates top-level HTTP configuration that applies to all SDK components. 8 // 9 // See ldcomponents.HTTPConfigurationBuilder for more details on these properties. 10 type HTTPConfiguration struct { 11 // DefaultHeaders contains the basic headers that should be added to all HTTP requests from SDK 12 // components to LaunchDarkly services, based on the current SDK configuration. This map is never 13 // modified once created. 14 DefaultHeaders http.Header 15 16 // CreateHTTPClient is a function that returns a new HTTP client instance based on the SDK configuration. 17 // 18 // The SDK will ensure that this field is non-nil before passing it to any component. 19 CreateHTTPClient func() *http.Client 20 } 21