mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Implement brotli support for CompressionStream and DecompressionStream Testing: brotli test should pass Fixes: #40831 --------- Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>
19 lines
558 B
Plaintext
19 lines
558 B
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://compression.spec.whatwg.org/#enumdef-compressionformat
|
|
enum CompressionFormat {
|
|
"deflate",
|
|
"deflate-raw",
|
|
"gzip",
|
|
"brotli",
|
|
};
|
|
|
|
// https://compression.spec.whatwg.org/#compressionstream
|
|
[Exposed=*]
|
|
interface CompressionStream {
|
|
[Throws] constructor(CompressionFormat format);
|
|
};
|
|
CompressionStream includes GenericTransformStream;
|