You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a custom http client that'd support gzip as well as brotli. I'm parsing the http request headers and upon processing the headers I'm trying to apply a stream filter depending on the Content-Encoding header the server sent.
I noticed we've got automatic header detection with zlib.
@kjdevgoogle/brotli#867 says that the comment option was added. Doesn't this mean the magic bytes were added and could be used to detect compressed files?
Turns out I wouldn't need the functionality, but it could be a nice feature to have.
I'm working on a custom http client that'd support gzip as well as brotli. I'm parsing the http request headers and upon processing the headers I'm trying to apply a stream filter depending on the Content-Encoding header the server sent.
I noticed we've got automatic header detection with zlib.
See https://www.zlib.net/manual.html#Advanced definition of inflateInit2.
In this PHP this can be used as:
Do we have means to do automatic header detection with Brotli?
What a suggested approach would look like?
Thanks 🙏
The text was updated successfully, but these errors were encountered: