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

Adds proxy as option to request #46

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

Conversation

JonathanWexler
Copy link

I'll clean this up. But just wanted to get this out there first. This adds the ability to enter a proxy as an option. I needed this to test in a secure network.

if (proxy) {
request = {
host: proxy,
path: (options.query.https ? "https" : "http") + "://" + API_HOSTNAME + API_BASE_PATH + options.api + endpoint + query,
Copy link
Owner

Choose a reason for hiding this comment

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

Instead of options.query.https, can we use this.https from the https option in the constructor? What are your thoughts @JonathanWexler?

@austinkelleher
Copy link
Owner

Thank you for the PR @JonathanWexler! I'm sorry for the late response. Let me know what you think of the comment above.

@austinkelleher
Copy link
Owner

Is this still something you're interested in exploring @JonathanWexler?

@JonathanWexler
Copy link
Author

JonathanWexler commented Jun 18, 2018 via email

@austinkelleher
Copy link
Owner

Awesome thanks @JonathanWexler!

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