Skip to content

Allow injection of an HTTP client #65

@mark-dr

Description

@mark-dr

Using undici is a great choice, but bundling it with the app could be offputting for anyone who's currently using e.g. axios, got, or pure Node HTTP calls (or even just a different version of undici). For those folks, it'd be better if:

  • undici is an optional peer dependency
  • when creating a DockerClient, we can provide our own network client implementation; otherwise it defaults to your undici-based implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions