-
Notifications
You must be signed in to change notification settings - Fork 58
Feature: request under Node.js can proxy like a browser #335
Comments
We may want some of this to be a separate package. I started the PAC parser/resolver on Friday and it’s going to add dependencies on |
Blah, yeah, I see the problem. What we have as a very light external run-time dependencies would suddenly become crowded and only be required by a smaller subset of users. I would be 👍 for breaking out as a separate package, with a replacement node request provider and additional modules for doing the proxy detection. I just don't know what we would name it. |
I think most of the code to actually use the proxy settings could still live in import request from ‘@dojo/core/request’;
import { pac } from ‘@dojo/proxy’;
request(url, { proxy: pac(...) }) |
Would |
Enhancement
When working with
request
under Node.js, we should have similar functionality to what is available when running under XHR, in the sense of being able to configure the proxies in a particular way, but also supporting things like PAC configurations.In order to do this we need to:
The text was updated successfully, but these errors were encountered: