Package org.springframework.web.client
Interface RestClient.RequestHeadersSpec.ConvertibleClientHttpResponse
- All Superinterfaces:
- AutoCloseable,- ClientHttpResponse,- Closeable,- HttpInputMessage,- HttpMessage
- Enclosing interface:
- RestClient.RequestHeadersSpec<S extends RestClient.RequestHeadersSpec<S>>
public static interface RestClient.RequestHeadersSpec.ConvertibleClientHttpResponse
extends ClientHttpResponse
Extension of 
ClientHttpResponse that can convert the body.- 
Method SummaryMethods inherited from interface org.springframework.http.client.ClientHttpResponseclose, getStatusCode, getStatusTextMethods inherited from interface org.springframework.http.HttpInputMessagegetBodyMethods inherited from interface org.springframework.http.HttpMessagegetHeaders
- 
Method Details- 
bodyToExtract the response body as an object of the given type.- Type Parameters:
- T- the body type
- Parameters:
- bodyType- the type of return value
- Returns:
- the body, or nullif no response body was available
 
- 
bodyToExtract the response body as an object of the given type.- Type Parameters:
- T- the body type
- Parameters:
- bodyType- the type of return value
- Returns:
- the body, or nullif no response body was available
 
 
-