Class: VwRequest

VwRequest

Herramientas XmlHttpRequest

Methods

(static) send(methodopt, dataopt, asyncopt, contentTypeopt, headersopt, timeoutopt, successopt, erroropt, url)

Parameters:
Name Type Attributes Default Description
method string <optional>
GET método http
data object <optional>
Cuerpo. Obligatorio para los métodos POST/PUT/DELETE/PATCH
async boolean <optional>
true
contentType string <optional>
application/json; charset=UTF-8
headers string <optional>
{} Cabeceras adicionales
timeout int <optional>
5000 Tiempo máximo de espera en milisegundos
success function <optional>
Callback para gestionar peticiones con éxito
error function <optional>
Callback para gestionar peticiones fallidas
url string
Source: