Added beforeSend hook to http client #4419
This small PR is to help solve the issue caused by the xhr object being locked in the
This PR add's a small callback that's fired just before the
Including but not limited to
Reason for implementing the hook in this fasion, i.e. named
Thanks for the pull request!
While honestly, I think Meteor would be better off with no
Please add documentation of the new option, in the JSDoc at the top of the
@glasser, I've noticed you have quoted me. I completely agree with you that one should use an external xhr library if the project makes a lot of use of xhr requests (I'm a big fan of visionmedia/superagent). In my case, I required only a single xhr request in my entire app. For a file upload template only.
So my thought at the time was, if the xhr object could be accessed, to be able to bind some events like
I also understand, and agree with you, that
So, as its now possible to create light weight http packages that build on top of