@@ -29,10 +29,6 @@ import (
29
29
30
30
const headerContentEncoding = "Content-Encoding"
31
31
32
- // HTTPClientSettings defines settings for creating an HTTP client.
33
- // Deprecated: [v0.94.0] Use ClientConfig instead
34
- type HTTPClientSettings = ClientConfig
35
-
36
32
// ClientConfig defines settings for creating an HTTP client.
37
33
type ClientConfig struct {
38
34
// The target URL to send data to (e.g.: http://some.url:9411/v1/traces).
@@ -103,15 +99,6 @@ type ClientConfig struct {
103
99
HTTP2PingTimeout time.Duration `mapstructure:"http2_ping_timeout"`
104
100
}
105
101
106
- // NewDefaultHTTPClientSettings returns HTTPClientSettings type object with
107
- // the default values of 'MaxIdleConns' and 'IdleConnTimeout'.
108
- // Other config options are not added as they are initialized with 'zero value' by GoLang as default.
109
- // We encourage to use this function to create an object of HTTPClientSettings.
110
- // Deprecated: [v0.94.0] Use NewDefaultClientConfig instead
111
- func NewDefaultHTTPClientSettings () ClientConfig {
112
- return NewDefaultClientConfig ()
113
- }
114
-
115
102
// NewDefaultClientConfig returns ClientConfig type object with
116
103
// the default values of 'MaxIdleConns' and 'IdleConnTimeout'.
117
104
// Other config options are not added as they are initialized with 'zero value' by GoLang as default.
@@ -263,10 +250,6 @@ func (interceptor *headerRoundTripper) RoundTrip(req *http.Request) (*http.Respo
263
250
return interceptor .transport .RoundTrip (req )
264
251
}
265
252
266
- // HTTPServerSettings defines settings for creating an HTTP server.
267
- // Deprecated: [v0.94.0] Use ServerConfig instead
268
- type HTTPServerSettings = ServerConfig
269
-
270
253
// ServerConfig defines settings for creating an HTTP server.
271
254
type ServerConfig struct {
272
255
// Endpoint configures the listening address for the server.
@@ -419,11 +402,6 @@ func responseHeadersHandler(handler http.Handler, headers map[string]configopaqu
419
402
})
420
403
}
421
404
422
- // CORSSettings configures a receiver for HTTP cross-origin resource sharing (CORS).
423
- // See the underlying https://github.com/rs/cors package for details.
424
- // Deprecated: [v0.94.0] Use CORSConfig instead
425
- type CORSSettings = CORSConfig
426
-
427
405
// CORSConfig configures a receiver for HTTP cross-origin resource sharing (CORS).
428
406
// See the underlying https://github.com/rs/cors package for details.
429
407
type CORSConfig struct {
0 commit comments