Replies: 2 comments
-
Uploading with the PUT method to a webDAV server needs: See TAF a WebDAV client in JavaScript (just 10KB) featuring mithril.js |
Beta Was this translation helpful? Give feedback.
-
@plybrd do you feel like creating a PR for this against the v2.x branch? If so, it would be much appreciated. The implementation is trivial, and as far as testing goes, I wouldn't worry about faking the functionality in detail. Adding stub constructors like we do for FormData in the xhr mocks will be enough: mithril.js/test-utils/xhrMock.js Lines 14 to 16 in e0996bd The common prototype for all typed arrays can be accessed through |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions