forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract
ResponseLengthRecorder
in REST layer
Related to elastic#104752, we should not be confounding the lifecycle of the `EncodedLengthTrackingChunkedRestResponseBody` with the lifecycle of the overall `RestResponse`. This commit introduces a separate object to record the total response length whose lifecycle is independent of that of the response body.
- Loading branch information
1 parent
8927a1a
commit e0a4ec3
Showing
1 changed file
with
44 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters