CompressionStream.readable

Baseline 2023

Newly available

Since May 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

CompressionStream 接口的 readable 只读属性返回 ReadableStream

一个 ReadableStream

示例

以下示例从 CompressionStream 返回 ReadableStream

js
let stream = new CompressionStream("gzip");
console.log(stream.readable); //一个 ReadableStream

规范

Specification
Streams Standard
# dom-generictransformstream-readable

浏览器兼容性

BCD tables only load in the browser