Skip to main content
Version: 3.45.0

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 GET or HEAD.