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

restify/node-restify#878 HTTP proxy improvments (http_proxy et al) #85

Merged
merged 3 commits into from
Oct 18, 2016

Conversation

trentm
Copy link
Contributor

@trentm trentm commented Oct 17, 2016

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 84.354% when pulling 2c96411 on trentm:proxy-improvements into 9962968 on restify:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 84.354% when pulling 2c96411 on trentm:proxy-improvements into 9962968 on restify:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 84.354% when pulling 2c96411 on trentm:proxy-improvements into 9962968 on restify:master.

Copy link
Member

@yunong yunong left a comment

Choose a reason for hiding this comment

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

Looks mostly good to me. A couple of minor nits. Would appreciate another set of eyes on this. cc @micahr @DonutEspresso @jclulow


// TODO: proxyOpts.headers (see whitelisting of req headers by 'request'
Copy link
Member

Choose a reason for hiding this comment

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

Can you please file an issue for this task?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#86 added

// HTTP proxy: `options.proxy` wins, else `https_proxy`/`http_proxy` envvars
// (upper and lowercase) are used.
if (options.proxy === false) {
this.proxy = false;
Copy link
Member

Choose a reason for hiding this comment

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

We tend to use the convention of self instead of this when accessing or mutating a variable that has already been declared. Mind sticking to this convention?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Current usage is still largely this.:

$ grep '\bthis\.' lib/HttpClient.js | wc -l
      74
$ grep '\bself\.' lib/HttpClient.js | wc -l
      28

However, I'm totally cool favouring self.. Updated now.

@DonutEspresso
Copy link
Member

LGTM

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 84.354% when pulling ae78879 on trentm:proxy-improvements into 9962968 on restify:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 84.354% when pulling ae78879 on trentm:proxy-improvements into 9962968 on restify:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 84.354% when pulling ae78879 on trentm:proxy-improvements into 9962968 on restify:master.

@trentm
Copy link
Contributor Author

trentm commented Oct 18, 2016

@yunong I've updated for your requests. I've not used GH reviews yet, so I'm not sure what comes next. I only see a "Dismiss review", which I'm pretty sure isn't what I want to click. ;)

@yunong
Copy link
Member

yunong commented Oct 18, 2016

Merci @trentm 👍 👍

@yunong
Copy link
Member

yunong commented Oct 18, 2016

Feel free to merge.

@trentm trentm merged commit 44ea708 into restify:master Oct 18, 2016
@trentm trentm deleted the proxy-improvements branch October 18, 2016 23:56
@trentm
Copy link
Contributor Author

trentm commented Oct 19, 2016

I'll publish a new minor rev tomorrow morning.

@trentm
Copy link
Contributor Author

trentm commented Oct 19, 2016

restify-clients@1.4.0

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.

4 participants