Aborts the current request by using the AbortController
Clones the current AjaxRequest object
Executes a regular DELETE request
Executes a regular GET request
Merge the incoming RequestInit object with the pre-defined default options
Executes a (by default uncached) POST request
Executes a (by default uncached) PUT request
Sends the requests by using the fetch API
Clones the AjaxRequest object, generates the final query string and uses it for the request
Generated using TypeDoc
send data as
Content-Type: multipart/form-data
(default) const request = new AjaxRequest('/endpoint'); const response = request.post({item: { first: 'value'}}); // sendsitem[first]=value
in request body (analogous) // can be used like this server-side //$value = ServerRequest::getParsedBody()['item']['first']
send data as
Content-Type: application/json
(must be set explicit) const request = new AjaxRequest('/endpoint'); const response = request.post({item: { first: 'value'}}); // sends{"item":{"first":"value"}}
in request body // can be used like this server-side //$value = json_decode((string)ServerRequest::getBody(), true)['item']['first']