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

Usage without leveraging node.Agent #149

Open
Fohlen opened this issue Dec 20, 2020 · 1 comment
Open

Usage without leveraging node.Agent #149

Fohlen opened this issue Dec 20, 2020 · 1 comment

Comments

@Fohlen
Copy link
Contributor

Fohlen commented Dec 20, 2020

Currently this library is heavily restricted as any proxy implementation must follow the http.Agent implementation. However, for many other environments it is desirable use the library only for preprocessing. A function should then yield:

  • the URL which would be forwarded to http.Agent including the query
  • necessary cookies or HTTP parameters

In this way it can then be used with other software such as fetch or request (potentially in any language).
Would it be feasible and desirable to do such a refactoring in utilities.js ?
The end result would be a get_options function (or similar) that is both internally used and exported.

If this is desirable let me know:

  • would you like to implement something like this
  • or would you accept a PR for such a feature?

All the best,
Lennard

@pat310
Copy link
Owner

pat310 commented Dec 20, 2020 via email

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

No branches or pull requests

2 participants