Expose Request class #542

Merged
merged 1 commit into from May 4, 2013

Projects

None yet

3 participants

@regality
Contributor
regality commented May 3, 2013

This exposes the Request class so that the following is possible:

var request = require('request');

// disable strictSSL globally
request.Request.prototype.strictSSL = false;

Currently, this is only possible with request.defaults(), which is rather cumbersome when request is used in a lot of different places.

@mikeal mikeal merged commit 78b7a0a into request:master May 4, 2013
@mikeal
Member
mikeal commented May 4, 2013

keep in mind that setting that property is unlikely to truly be global since different dependencies will get their own versions of request.

@ebdrup
ebdrup commented May 7, 2013

What's the release plan? When can I expect this to make it to npm? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment