Skip to content

Feature Request: Extensible ContentEncodingFilter for Zstd/Brotli support #14073

Description

@tsawada

Currently, Play only has GzipFilter. To easily support modern compression algorithms like Brotli (br) or zstd without duplicating filter logic, it would be great to have an extensible encoding filter, something like

class ContentEncodingFilter(
  encodingName: String, 
  createFlow: () => Flow[ByteString, ByteString, _],
  shouldTranscode: (request: RequestHeader, result: Result) => Boolean,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions