org.springframework.boot.web.client

Interface RestTemplateRequestCustomizer<T extends org.springframework.http.client.ClientHttpRequest>

  • Type Parameters:
    T - the ClientHttpRequest type
    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 RestTemplateRequestCustomizer<T extends org.springframework.http.client.ClientHttpRequest>
    Callback interface that can be used to customize the ClientHttpRequest sent from a RestTemplate.
    Since:
    2.2.0
    Author:
    Ilya Lukyanovich, Phillip Webb
    See Also:
    RestTemplateBuilder, ClientHttpRequestInitializer
    • Method Detail

      • customize

        void customize(T request)
        Customize the specified ClientHttpRequest.
        Parameters:
        request - the request to customize

Copyright © 2020 Pivotal Software, Inc.. All rights reserved.