You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The defaults method in the request library is useful for creating a new request function with some options already set. It can also take a requester function, which is a lightweight way to extend functionality. The requester is undocumented but is at this point not much code to implement and could be an interesting refactor for xhr.
The text was updated successfully, but these errors were encountered:
@jmeas Apart from opinions which are always welcome, would you mind sharing if this form of extending xhr fulfills your needs (the ones originally leading to your PR with qs) ?
I think it would fulfill my needs, @naugtur . If we added this, we could revert the other API, with the added benefit of being more consistent with request.
@naugtur , I've got it on my to do list to dig more into this library. I'm going to work on those integration tests first, I think. Time permitting, I'd be happy to help out with more, too.
The
defaults
method in the request library is useful for creating a new request function with some options already set. It can also take arequester
function, which is a lightweight way to extend functionality. Therequester
is undocumented but is at this point not much code to implement and could be an interesting refactor for xhr.The text was updated successfully, but these errors were encountered: