Skip to content

[HttpLoggingInterceptor]: support brotli #9386

Open

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.

Activity

  1. added
    enhancement
    on Mar 24, 2026
  2. krahulshharmaa commented on Apr 13, 2026

    @krahulshharmaa

    Hi @Starmania , Can I work on this?

  3. Starmania commented on Apr 13, 2026

    @Starmania
    Author

    Hi,
    Yes ! Feel free to write a PR to add the functionality !

  4. krahulshharmaa commented on Apr 13, 2026

    @krahulshharmaa

    Thanks @Starmania , I'll start working on this.

  5. yschimke commented on Apr 13, 2026

    @yschimke
    Collaborator

    just FYI - without a project maintainer being involved there is a reasonable chance it does not get immediate attention, or there are review comments blocking it being accepted and merged. I'm not saying don't make a PR, just treat it as somewhat speculative.

  6. krahulshharmaa commented on Apr 13, 2026

    @krahulshharmaa

    Thanks @yschimke , if would be helpful if you can help me in getting the PR checked and merged.

  7. krahulshharmaa commented on Apr 13, 2026

    @krahulshharmaa

    Hi @Starmania , I have given a PR -> #9420

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions