-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle Content-Encoding, e.g. gzip'ed data #21
Comments
We might encounter the following: Content-Encoding: gzip
Content-Encoding: compress
Content-Encoding: deflate
Content-Encoding: br
// Multiple, in the order in which they were applied
Content-Encoding: deflate, gzip See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding |
Brotli would be added with xp-framework/core#307 |
...or alternatively with https://github.com/xp-forge/compression, wich has the following API: @FileSystemCL<./src/main/php>
@FileSystemCL<./src/test/php>
package io.streams.compress {
package io.streams.compress.unittest
public class io.streams.compress.BrotliInputStream
public class io.streams.compress.BrotliOutputStream
public class io.streams.compress.Bzip2InputStream
public class io.streams.compress.Bzip2OutputStream
public class io.streams.compress.GzipInputStream
public class io.streams.compress.GzipOutputStream
} |
The HTTP deflate encoding is not supported by Apache and seems not to be widely supported by other servers:
Something very similar goes for compress:
We would be fine off if we support: Content-Encoding: gzip
Content-Encoding: br |
https://github.com/xp-forge/compression/releases/tag/v0.2.0 should not support this sufficiently |
https://github.com/xp-forge/compression/releases/tag/v1.0.0 has been released |
Currently, the following is necessary in user code:
The text was updated successfully, but these errors were encountered: