Skip to content

[Feature Request]: Change httpClientConfig.dialer to interface type for better extensibility #160

@farss

Description

@farss

Describe the feature / enhancement and how it would improve things

Current Behavior
In httpClientConfig struct, the dialer field is currently typed as concrete net.Dialer:

Proposed Change
Change the dialer field to use an interface type instead. This would allow for more flexibility in terms of what types of dialers can be used with the client.

Describe how your proposal will work, with code and/or pseudo-code

type Dialer interface {
    Dial(network, addr string) (net.Conn, error)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions