Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: Allow custom Doer #690

Merged
merged 1 commit into from
Nov 15, 2023
Merged

client: Allow custom Doer #690

merged 1 commit into from
Nov 15, 2023

Conversation

eseliger
Copy link
Member

This PR makes the httpClient an interface with the minimal surface area required by the stream.Client. This lets us inject a custom doer more easily, which can be beneficial for testing, and in the case of Sourcegraph, lets us augment the Doer with middleware.

This PR makes the httpClient an interface with the minimal surface area required by the stream.Client.
This lets us inject a custom doer more easily, which can be beneficial for testing, and in the case of Sourcegraph, lets us augment the Doer with middlewares.
Copy link
Member

@keegancsmith keegancsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, interested to see what you do on the sourcegraph side.

@eseliger eseliger merged commit 334e30f into main Nov 15, 2023
8 checks passed
@eseliger eseliger deleted the es/doer branch November 15, 2023 00:51
eseliger added a commit to sourcegraph/sourcegraph-public-snapshot that referenced this pull request Nov 15, 2023
Includes [client: Allow custom Doer](sourcegraph/zoekt#690)

Which I will make use of in a separate PR.

## Test Plan

CI and Zoekt CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants