Request.blob()
The blob() method of the Request interface reads the request body and returns it as a promise that resolves with a Blob.
Syntax
blob()
Parameters
None.
Return value
A Promise that resolves with a Blob.
Exceptions
TypeError- : Thrown if the request body has already been used or if the request's method is
GETorHEAD.
- : Thrown if the request body has already been used or if the request's method is