Skip to content

Use confighttp.NewDefaultClientConfig function to create object of confighttp.ClientConfig #6641

Closed as not planned
@hprajapati-splunk

Description

@hprajapati-splunk

In config/confighttp/confighttp.go file 4 new pointer type variables (MaxIdleConns, MaxIdleConnsPerHost, MaxConnsPerHost, IdleConnTimeout) has been introduced. The pointer type is used in order to distinguish the user provided input with no-input as discussed here.

In long run, we want to change those variable types to non-pointers as discussed here, so we have introduced DefaultHTTPClientSettings functions. Once, all the users' of below two repos start to use DefaultHTTPClientSettings function to create the object of HTTPClientSettings, we'll change those 4 variables's type to non-pointers:

This issue is created to track the progress mentioned above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions