ajax-cp
v0.2.0
Published
small promise-based ajax library with a reasonable (hopefully) cancel mechanic
Downloads
4
Readme
ajaxp
Small promise-based ajax library with a reasonable (hopefully) cancel mechanic
ajaxcp(url, [options]) -> {request : Promise, cancel : function}
ajaxcp
Executes an ajax request to the given url. Returns an object with the request promise and a cancel method. The request promise resolves to a response object on success, or
null
if canceled before completion.