Skip to content

Get response's original content-encoding #14399

@kwin

Description

@kwin

Jetty Version
12.1.5

Jetty Environment
Client

Java Version
21

Question
I use a Jetty HTTP Client and want to know if a response was sent with in compressed format. However the original Content-Encoding header seem to be removed by Jetty when using the compression handlers as outlined in https://jetty.org/docs/jetty/12.1/programming-guide/client/http.html#content-response.
Apache HTTPClient no longer removes the original response headers (even when decompressing the response body), compare with https://issues.apache.org/jira/browse/HTTPCLIENT-2409.

How do get this information if not exposed via Response headers in Jetty HTTP Client?

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