Jetty version(s)
Jetty 12
Enhancement Description
The current GzipHandler does a good job at handling Content-Encoding: gzip (and Accept-Encoding: gzip), but we shouldn't hardcode only gzip support.
Can we refactor the existing GzipHandler to be more generic, something like DynamicCompressionHandler and have the Gzip support (courtesy of the existing GzipRequest object) just be loaded via a ServiceLoader?
This way we can encourage other compression algorithms under the same Accept-Encoding / Content-Encoding / already compressed rules that the existing codebase handles for us?
Other compression algorithms that have been requested in our issue tracker.
(FYI, curl supports both of these compression types now)
Jetty version(s)
Jetty 12
Enhancement Description
The current
GzipHandlerdoes a good job at handlingContent-Encoding: gzip(andAccept-Encoding: gzip), but we shouldn't hardcode only gzip support.Can we refactor the existing
GzipHandlerto be more generic, something likeDynamicCompressionHandlerand have the Gzip support (courtesy of the existingGzipRequestobject) just be loaded via a ServiceLoader?This way we can encourage other compression algorithms under the same
Accept-Encoding/Content-Encoding/ already compressed rules that the existing codebase handles for us?Other compression algorithms that have been requested in our issue tracker.
application/zstdMedia Type(FYI,
curlsupports both of these compression types now)