fetch-h2-br
Version:
🥐 Brotli decoder to fetch-h2-br
19 lines (14 loc) • 317 B
text/typescript
import { DecodeFunction, Decoder } from 'fetch-h2'
import { decompressStream } from 'iltorb'
export default function brDecode( )
{
return {
name: 'br',
decode( stream: NodeJS.ReadableStream ): NodeJS.ReadableStream
{
return stream.pipe( decompressStream( ) );
}
};
}
export { brDecode }