Example usage for org.springframework.web.reactive.function.client ExchangeStrategies withDefaults

List of usage examples for org.springframework.web.reactive.function.client ExchangeStrategies withDefaults

Introduction

In this page you can find the example usage for org.springframework.web.reactive.function.client ExchangeStrategies withDefaults.

Prototype

static ExchangeStrategies withDefaults() 

Source Link

Document

Return an ExchangeStrategies instance with default configuration provided by ClientCodecConfigurer .

Usage

From source file:org.springframework.web.reactive.function.client.ExchangeFunctions.java

/**
 * Create an {@code ExchangeFunction} with the given {@code ClientHttpConnector}.
 * This is the same as calling/* w  ww .  j a v  a2 s .  com*/
 * {@link #create(ClientHttpConnector, ExchangeStrategies)} and passing
 * {@link ExchangeStrategies#withDefaults()}.
 * @param connector the connector to use for connecting to servers
 * @return the created {@code ExchangeFunction}
 */
public static ExchangeFunction create(ClientHttpConnector connector) {
    return create(connector, ExchangeStrategies.withDefaults());
}