Kong / Kong/unirest-nodejs

Global proxy setting?

Open
#22 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
953
Forks
164
PR merge metrics
No merged PRs in 30d

Description

Hi! Love your library, using it all over the place. I had a quick Q though:

I use [Charles](http://www.charlesproxy.com/) as a local request inspector, which I end up routing in your library using `.proxy('http://localhost:8888').strictSSL(false)` , but I was wondering if there is a way to set this globally, and perhaps conditionally based off the environment variable? I'm finding I'm using it on a lot of my requests, and am needing to go and clean them all out when I push my code back up to production.

Lemme know :) Thank again for such a great library!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the existing `.proxy('http://localhost:8888').strictSSL(false)` request path and checking how this Node.js library accepts configuration. Define the desired global and environment-variable behavior, including how production avoids the local proxy, then verify requests use it without per-request proxy calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.