Per https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send
A body of data to be sent in the XHR request. This can be:
We only support a subset of these:
|
if (body == null) xhr.send() |
|
else if (typeof args.serialize === "function") xhr.send(args.serialize(body)) |
|
else if (body instanceof $window.FormData || body instanceof $window.URLSearchParams) xhr.send(body) |
|
else xhr.send(JSON.stringify(body)) |
Mithril.js version:
All versions up to 2.2.2
Per https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send
A body of data to be sent in the XHR request. This can be:
We only support a subset of these:
mithril.js/request/request.js
Lines 143 to 146 in 645cf66
Mithril.js version:
All versions up to 2.2.2