You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will make the methods available on WebClient.Builder and ClientRequest symmetrical, (variants for String..., and List<String> for all header)
MediaType
Add ClientRequest.contentType(Mediatype)
Update ClientRequestHeaders.accept(HttpMediatype... accepted) to use HttpMediatype instead since the implementation of the method does not require it and HttpMediatype extends MediaType
In v3 we had this:
As of V4 pre M1 we have this:
Header value types
WebClient.Builder.header(HeaderName, String... value)
ClientRequest.header(Http.HeaderName name, String value)
to use varag for the valueClientRequest.header(Http.HeaderName name, List<String> value)
This will make the methods available on
WebClient.Builder
andClientRequest
symmetrical, (variants forString...
, andList<String>
for all header)MediaType
ClientRequest.contentType(Mediatype)
ClientRequestHeaders.accept(HttpMediatype... accepted)
to useHttpMediatype
instead since the implementation of the method does not require it andHttpMediatype
extendsMediaType
ClientRequest.accept(Mediatype... acceptedTypes)
Ignoring
HttpMediaType
variants, see details in #7058Bulk add
V3
WebClientRequestBuilder
had methods to operate on bulk headersThere is no way to easily add bulk headers (E.g. from a server request):
ClientRequest.headers(Headers)
The hard set (or reset) can be achieved with
.headers(Function<ClientRequestHeaders, WritableHeaders<?>>)
ClientRequestHeaders getter
The only way to inspect the headers is to use
.headers(Function<ClientRequestHeaders, WritableHeaders<?>>)
ClientRequest.headers() : ClientRequestHeaders
The text was updated successfully, but these errors were encountered: