Package co.elastic.clients.transport
Interface TransportOptions
- All Known Implementing Classes:
DefaultTransportOptions
,Rest5ClientOptions
,RestClientOptions
public interface TransportOptions
Container for all application-specific or request-specific options, including headers, query parameters and warning handlers.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionheaders()
boolean
Iftrue
, the response body inTransportException.response().body()
is guaranteed to be replayable (i.e.void
updateToken
(String token) default TransportOptions
-
Method Details
-
headers
Collection<Map.Entry<String,String>> headers() -
queryParameters
-
onWarnings
-
updateToken
-
keepResponseBodyOnException
boolean keepResponseBodyOnException()Iftrue
, the response body inTransportException.response().body()
is guaranteed to be replayable (i.e. buffered), even if the original response was streamed. This allows inspecting the response body in case of error. -
toBuilder
TransportOptions.Builder toBuilder() -
with
-