I'd like to have a REST webservice endpoint written with Flask (python3) which accepts a message compressed with Brotli. Is it supported in Flask?
A workaround which thought of is to have a non-compressed request body similar to this:
{
content: {{brotli-compressed json: bytes/String}}
}
and just decompress the 'content' later in a code to a json.
Is this a valid approach? Or is there another library for python which supports brotli?
Disclaimer: I'm not an expert on webservices