Skip to content

[refactor] Change JettyHttpClient#sendAsync method to not read full response in memory #4201

@manusa

Description

@manusa

Is your enhancement related to a problem? Please describe

Currently, the JettyHttpClient#sendAsync method reads the response completely in-memory before completing the future, even for streaming return types (Readable or InputStream).

Describe the solution you'd like

Provide alternative response listener implementation for InputStream and Readable so that the future is complete as soon as the response is received and we pipe the packets as an InputStream.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions