Ajax Request (use of Promises)
- See:
-
- dependance 'es6-promise'
Methods
-
staticcall(settings)
Protocols/XHR.js, line 22 -
Interface unique d'envoi d'une requête.
Name Type Description settings Object options generales
Name Type Description url String url du service
method String GET, POST, PUT, DELETE
format String format de la reponse du service : json, xml ou null (brute)
data String content (post) ou param (get)
proxy String proxy url
headers Object | String (post) ex. referer
content Object | String (post) ex. 'application/json'
timeOut String timeout = 0 par defaut
scope String this
onResponse function callback
onFailure function callback