# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods

Deprecated Classes
Class and Description
org.springframework.web.reactive.function.client.ExchangeFilterFunctions.Credentials as of Spring 5.1 in favor of using `HttpHeaders.setBasicAuth(String, String)` while building the request.
org.springframework.web.reactive.resource.GzipResourceResolver as of 5.1, in favor of using `EncodedResourceResolver`

Deprecated Fields
Field and Description
org.springframework.web.reactive.function.client.ExchangeFilterFunctions.BASIC_AUTHENTICATION_CREDENTIALS_ATTRIBUTE as of Spring 5.1 in favor of using `HttpHeaders.setBasicAuth(String, String)` while building the request.

Deprecated Methods
Method and Description
org.springframework.web.reactive.function.client.ExchangeFilterFunctions.basicAuthentication() as of Spring 5.1 in favor of using `HttpHeaders.setBasicAuth(String, String)` while building the request.
org.springframework.web.reactive.function.client.WebClient.Builder.exchangeStrategies(Consumer<ExchangeStrategies.Builder>) as of 5.1.13 in favor of `WebClient.Builder.codecs(Consumer)`
org.springframework.web.reactive.function.BodyInserters.fromObject(T) As of Spring Framework 5.2, in favor of `BodyInserters.fromValue(Object)`
org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.getHandlePing() as of 5.2.6 in favor of `ReactorNettyRequestUpgradeStrategy.getWebsocketServerSpec()`
org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.getMaxFramePayloadLength() as of 5.2.6 in favor of `ReactorNettyRequestUpgradeStrategy.getWebsocketServerSpec()`
org.springframework.web.reactive.function.client.ClientRequest.method(HttpMethod, URI) in favor of `ClientRequest.create(HttpMethod, URI)`
org.springframework.web.reactive.result.view.AbstractView.resolveAsyncAttributes(Map<String, Object>) as of 5.1.8 this method is still invoked but it is a no-op. Please use `AbstractView.resolveAsyncAttributes(Map, ServerWebExchange)` instead. It is invoked after this one and does the actual work.
org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.setHandlePing(boolean) as of 5.2.6 in favor of providing a supplier of `WebsocketServerSpec.Builder` wiht a constructor argument.
org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy.setMaxFramePayloadLength(Integer) as of 5.2.6 in favor of providing a supplier of `WebsocketServerSpec.Builder` wiht a constructor argument.
org.springframework.web.reactive.function.client.WebClient.RequestBodySpec.syncBody(Object) as of Spring Framework 5.2 in favor of `WebClient.RequestBodySpec.bodyValue(Object)`
org.springframework.web.reactive.function.server.ServerResponse.BodyBuilder.syncBody(Object) as of Spring Framework 5.2 in favor of `ServerResponse.BodyBuilder.bodyValue(Object)`
org.springframework.web.reactive.socket.server.RequestUpgradeStrategy.upgrade(ServerWebExchange, WebSocketHandler, String) as of 5.1 in favor of `RequestUpgradeStrategy.upgrade(ServerWebExchange, WebSocketHandler, String, Supplier)`