Skip to content

Commit 435d2ef

Browse files
l-trottaswallez
andauthored
Update java-client/src/main/java/co/elastic/clients/transport/TransportOptions.java
Co-authored-by: Sylvain Wallez <[email protected]>
1 parent 30ee626 commit 435d2ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

java-client/src/main/java/co/elastic/clients/transport/TransportOptions.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ interface Builder extends ObjectBuilder<TransportOptions> {
6767

6868
Builder onWarnings(Function<List<String>, Boolean> listener);
6969

70+
/**
71+
* Should the response body be buffered and made available in {@code TransportException.response().body()}?
72+
* This setting guarantees that the response body is buffered for inspection if parsing fails, even if originally
73+
* streamed by the http library.
74+
*/
7075
Builder keepResponseBodyOnException(boolean value);
7176
}
7277
}

0 commit comments

Comments
 (0)