google / google/brotli

Add parameter for set maximum length after decompress

Open
#1,149 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
14.9k
Forks
1.4k
Avg merge
4d 20h
Merged PRs (30d)
9

Description

Hello! It'll be great to have parameter `max_length` in `Decompressor` (http://python-hyper.org/projects/brotlipy/en/latest/api.html#brotli.Decompressor.decompress) like in python zlib: https://docs.python.org/3/library/zlib.html#zlib.Decompress.decompress.

The parameter mean that the return value will be no longer than `max_length`. I need it for use in http client.
Related issue in aiohttp: https://github.com/aio-libs/aiohttp/issues/8248

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.