Skip to content

Request.functions.readBlob

fx-fetch


fx-fetch / Request / readBlob

readBlob(self): Effect<Blob, MalformedBlobError, never>

Defined in: packages/fx-fetch/src/Request/readBlob.ts:23

Reads the body of a Request as a Blob.

Request

Effect<Blob, MalformedBlobError, never>

import { Request } from 'fx-fetch';
import { Effect } from 'effect';
const request = Request.make({ url: 'https://api.example.com', method: 'POST' });
const blob = await Effect.runPromise(Request.readBlob(request));

0.1.0