Skip to content

[HttpLoggingInterceptor]: support brotli #9386

@Starmania

Description

@Starmania

I recently ran into a small friction point while using HttpLoggingInterceptor to inspect response bodies. Currently, the interceptor handles gzip seamlessly, allowing us to read the logged response body in plain text. However, it doesn't seem to support brotli decompression.

Given that brotli is now one of OkHttp's default accepted encodings (and widely used for better compression), it would be incredibly helpful if the logging interceptor could handle it with the same out-of-the-box support it gives to gzip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions