Interface OkHttpClientBuilderConfigurator

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface OkHttpClientBuilderConfigurator
    Implementations of this interface can perform post-configuration of OkHttpClient.Builder used by Client internally. Note that OkHttpRestTemplateConfigurator will configure all essential settings before invoking the configurator.

    OkHttpClientBuilderConfigurator implementations typically customize request interceptors to set specific headers, proxy-related and TLS-related settings.

    Since:
    3.6.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      okhttp3.OkHttpClient.Builder configure​(okhttp3.OkHttpClient.Builder builder)
      Configure the OkHttpClient.Builder.
    • Method Detail

      • configure

        okhttp3.OkHttpClient.Builder configure​(okhttp3.OkHttpClient.Builder builder)
        Configure the OkHttpClient.Builder.
        Parameters:
        builder - incoming builder
        Returns:
        configured builder, usually same instance as the parameter