Skip to content

Introduce CompressionHandler to support compression from gzip, brotli, and zstandard #8769

@joakime

Description

@joakime

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)

Metadata

Metadata

Assignees

Labels

EnhancementSponsoredThis issue affects a user with a commercial support agreement

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions