Closed smhigley closed 6 years ago
Type: feature
The following has been addressed in the PR:
prettier
Description:
When specifically using the xhr provider, the upload events allow access to data available from the native xhr progress event:
xhr
const xhr = xhr.post('http://www.example.com/', { body: someLargeString }); xhr.upload.subscribe(uploadData => { const { loaded, total, lengthComputable } = uploadData; if (lengthComputable) { const percentComplete = loaded / total * 100; } });
The node provider has also been updated for consistency:
node
const req = request.post('http://www.example.com/', { body: someLargeString }); req.upload.subscribe(uploadData => { const { loaded } = uploadData; // do something with uploaded bytes })
Closed via https://github.com/dojo/framework/issues/11
Type: feature
The following has been addressed in the PR:
prettier
as per the readme code style guidelinesDescription:
When specifically using the
xhr
provider, the upload events allow access to data available from the nativexhr
progress event:The
node
provider has also been updated for consistency: