Skip to content

Proxy support added for axios. #6

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jsparkes
Copy link
Contributor

I've added support for configuring the axios proxy support. I needed proxy support for my purescript client, and this was by far the easier package to add it to. I have a simple

proxy "localhost" 8888

function added to Config.purs. I also have a commented out function that allows passing a URL string, but it depends on Node.URL, so it wouldn't work in a browser. I may try to make it work with purescript-uri if I can figure out how it works.

This patch is mostly based on the "update" pull request I also submitted, but I messed up a bit. The only import diff is for src/Axios/Config.purs, hopefully you can get it to work.

@iarthstar
Copy link
Owner

iarthstar commented Sep 13, 2021

I have merged the purescript version upgrade.

"hopefully you can get it to work." : is it not compiling or crashing ???

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