Closed tremendus closed 1 year ago
Glad you like it!
The simplest would be to add the request
object as last parameter of all those trigger
calls here
That's not the most elegant way but it should work and won't break compatibility.
If you have time to create a PR, that would be awesome.
Hi, great library, my favorite Ajax lib actually ...
I see from the docs and the source that there is no obvious way to get to the request object from the response. In my case, I would like to have an emitter called in the on('end') callback that emits the url, status code and the method for logging purposes. But doesn't seem currently possible.
Happy to do a PR - where do you suggest to do this in source?