温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/globals/Request/blob
点击访问原文链接

Request.blob method | globals module | Bun

Request.blob method | globals module | BunBuildDocsReferenceGuidesBlogDiscord/Globals/Request/blobMblob

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/Globals/Request/blobMblob

method

Request.blobblob(): PromiseBlob>;MDN Reference

Referenced typesclass BlobA file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.

MDN Reference

readonly size: numberMDN Reference

readonly type: stringMDN Reference

arrayBuffer(): PromiseArrayBuffer>;Returns a promise that resolves to the contents of the blob as an ArrayBuffer

bytes(): PromiseUint8ArrayArrayBufferLike>>;MDN Reference

bytes(): PromiseUint8ArrayArrayBuffer>>;Returns a promise that resolves to the contents of the blob as a Uint8Array (array of bytes) its the same as new Uint8Array(await blob.arrayBuffer())

formData(): PromiseFormData>;Read the data from the blob as a FormData object.

This first decodes the data from UTF-8, then parses it as a multipart/form-data body or a application/x-www-form-urlencoded body.

The type property of the blob is used to determine the format of the body.

This is a non-standard addition to the Blob API, to make it conform more closely to the BodyMixin API.

json(): Promiseany>;Read the data from the blob as a JSON object.

This first decodes the data from UTF-8, then parses it as JSON.

slice(start?: number,end?: number,contentType?: string): Blob;MDN Reference

stream(): ReadableStreamUint8ArrayArrayBufferLike>>;MDN Reference

stream(): ReadableStreamUint8ArrayArrayBuffer>>;Returns a readable stream of the blob's contents

text(): Promisestring>;Returns a promise that resolves to the contents of the blob as a string

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录