It doesn't seem like jQuery specifically supports this. The jqXHR object they create is just a universal object with methods added as properties, so there is no prototype that you can change, and I don't see any jQuery methods to modify it.
The only thing I could see was to register the ajax global event handler, for example jQuery.ajaxSend() , and add the necessary methods for each specific jqXHR object in this global handler. Then these methods will be available later.
source share