13 lines
676 B
Plaintext
13 lines
676 B
Plaintext
[[breaking_70_restclient_changes]]
|
|
=== High-level REST client changes
|
|
|
|
==== API methods accepting `Header` argument have been removed
|
|
|
|
All API methods accepting headers as a `Header` varargs argument, deprecated
|
|
since 6.4, have been removed in favour of the newly introduced methods that
|
|
accept instead a `RequestOptions` argument. In case you are not specifying any
|
|
header, e.g. `client.index(indexRequest)` becomes
|
|
`client.index(indexRequest, RequestOptions.DEFAULT)`.
|
|
In case you are specifying headers
|
|
e.g. `client.index(indexRequest, new Header("name" "value"))` becomes
|
|
`client.index(indexRequest, RequestOptions.DEFAULT.toBuilder().addHeader("name", "value").build());` |