requestFactory

Set the ClientHttpRequestFactory class that should be used with the RestTemplate.

Return

a new builder instance

Parameters

requestFactoryType

the request factory type to use

See also


Set the Supplier of ClientHttpRequestFactory that should be called each time we build a new RestTemplate instance.

Return

a new builder instance

Since

2.0.0

Parameters

requestFactorySupplier

the supplier for the request factory

See also


Deprecated (for removal)

Since version 3.4.0

Set the request factory function that should be called to provide a ClientHttpRequestFactory each time we build a new RestTemplate instance.

Return

a new builder instance

Since

3.0.0

Deprecated

since 3.4.0 for removal in 3.6.0 in favor of requestFactoryBuilder

Parameters

requestFactoryFunction

the settings to request factory function

See also