node-modules / urllib

Request HTTP(s) URLs in a complex world.
MIT License
726 stars 117 forks source link

什么时候才能支持proxy #395

Closed rockcookies closed 1 year ago

rockcookies commented 2 years ago

v3会支持proxy吗?

zpzxgcr commented 1 year ago

+1

fengmk2 commented 1 year ago

https://undici.nodejs.org/#/docs/api/ProxyAgent

undici 默认就支持,至于 urllib 怎么支持,还没细想。欢迎大家来贡献。

atian25 commented 1 year ago

@fengmk2 urllib2 不是有个 proxy 字段,直接传给 undici 这个属性不行?

fengmk2 commented 1 year ago

see https://github.com/node-modules/urllib#request-through-a-http-proxy