LibWeb: Implement the CompressionStream interface

This commit is contained in:
Timothy Flynn
2024-11-15 11:11:47 -05:00
committed by Andreas Kling
parent c0da3e356a
commit 638a8aecad
10 changed files with 303 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
#import <Streams/GenericTransformStream.idl>
// https://compression.spec.whatwg.org/#enumdef-compressionformat
enum CompressionFormat {
"deflate",
"deflate-raw",
"gzip",
};
// https://compression.spec.whatwg.org/#compressionstream
[Exposed=*]
interface CompressionStream {
constructor(CompressionFormat format);
};
CompressionStream includes GenericTransformStream;