Allow injection of an HTTP client

オープン
#65 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
nodejs, typescript
領域
api

調査の方向性

Start at the DockerClient construction API and trace how the current undici-based network client is selected. Define the injection and fallback behavior described in the issue, make undici optional, and verify that DockerClient still uses its default client when none is supplied.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
TypeScript
スター
107
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/node-sdk のほかの issue

docker/node-sdk の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。