Package org.springframework.web.client
Interface RestClient.RequestHeadersSpec.ExchangeFunction<T>
- Type Parameters:
- T- the type the response will be transformed to
- Enclosing interface:
- RestClient.RequestHeadersSpec<S extends RestClient.RequestHeadersSpec<S>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines the contract for 
RestClient.RequestHeadersSpec.exchange(ExchangeFunction).- 
Method SummaryModifier and TypeMethodDescriptionexchange(HttpRequest clientRequest, RestClient.RequestHeadersSpec.ConvertibleClientHttpResponse clientResponse) Exchange the given response into a typeT.
- 
Method Details- 
exchange@Nullable T exchange(HttpRequest clientRequest, RestClient.RequestHeadersSpec.ConvertibleClientHttpResponse clientResponse) throws IOException Exchange the given response into a typeT.- Parameters:
- clientRequest- the request
- clientResponse- the response
- Returns:
- the exchanged type
- Throws:
- IOException- in case of I/O errors
 
 
-