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

feat: support https proxy #84

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Mura-Mi
Copy link

@Mura-Mi Mura-Mi commented Oct 5, 2024

fix #83

@Mura-Mi Mura-Mi requested a review from lucacasonato as a code owner October 5, 2024 12:20
@Mura-Mi Mura-Mi marked this pull request as draft October 5, 2024 12:25
@Mura-Mi Mura-Mi force-pushed the http_proxy branch 2 times, most recently from 2f61fad to 79527bf Compare October 5, 2024 13:00
Comment on lines +201 to +204
// dispatcher is `ProxyAgent | undefined`, which is assignable to `Dispatcher | undefined` because
// ProxyAgent extends Dispatcher, but TS2322 is reported.
// @ts-ignore:
{ dispatcher },
Copy link
Author

Choose a reason for hiding this comment

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

Without this, following ts error is shown.

error: TS2322 [ERROR]: Type 'ProxyAgent | undefined' is not assignable to type 'Dispatcher | undefined'.
  Property 'compose' is missing in type 'ProxyAgent' but required in type 'Dispatcher'.

undici's ProxyAgent extends undici's Dispatcher, so it seems false-positive.
Is this @ts-ignore acceptable?

@Mura-Mi
Copy link
Author

Mura-Mi commented Oct 5, 2024

gonna convert to reviewable after testing behind proxy next monday.

@Mura-Mi Mura-Mi marked this pull request as ready for review October 7, 2024 00:02
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.

Respect HTTPS_PROXY environment variables
1 participant