# Uses of Interface
org.springframework.http.client.ClientHttpResponse

Packages that use ClientHttpResponse
Package
Description
org.springframework.http.client
Contains an abstraction over client-side HTTP.
org.springframework.http.client.support
This package provides generic HTTP support classes, to be used by higher-level classes like RestTemplate.
org.springframework.web.client
Core package of the client-side web support.

## Uses of ClientHttpResponse in org.springframework.http.client

Methods in org.springframework.http.client that return ClientHttpResponse
Modifier and Type
Method
Description
`final ClientHttpResponse`
AbstractClientHttpRequest.`execute()`
`ClientHttpResponse`
ClientHttpRequest.`execute()`
Execute this request, resulting in a `ClientHttpResponse` that can be read.
`ClientHttpResponse`
ClientHttpRequestExecution.`execute(HttpRequest request, byte[] body)`
Execute the request with the given request attributes and body, and return the response.
`protected abstract ClientHttpResponse`
AbstractClientHttpRequest.`executeInternal(HttpHeaders headers)`
Abstract template method that writes the given headers and content to the HTTP request.
`ClientHttpResponse`
ClientHttpRequestInterceptor.`intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution)`
Intercept the given request, and return a response.

## Uses of ClientHttpResponse in org.springframework.http.client.support

Methods in org.springframework.http.client.support that return ClientHttpResponse
Modifier and Type
Method
Description
`ClientHttpResponse`
BasicAuthenticationInterceptor.`intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution)`

## Uses of ClientHttpResponse in org.springframework.web.client

Subinterfaces of ClientHttpResponse in org.springframework.web.client
Modifier and Type
Interface
Description
`static interface`
`RestClient.RequestHeadersSpec.ConvertibleClientHttpResponse`
Extension of `ClientHttpResponse` that can convert the body.
Methods in org.springframework.web.client with parameters of type ClientHttpResponse
Modifier and Type
Method
Description
`T`
HttpMessageConverterExtractor.`extractData(ClientHttpResponse response)`
`T`
ResponseExtractor.`extractData(ClientHttpResponse response)`
Extract data from the given `ClientHttpResponse` and return it.
`protected Charset`
DefaultResponseErrorHandler.`getCharset(ClientHttpResponse response)`
Determine the charset of the response (for inclusion in a status exception).
`protected MediaType`
HttpMessageConverterExtractor.`getContentType(ClientHttpResponse response)`
Determine the Content-Type of the response based on the "Content-Type" header or otherwise default to `MediaType.APPLICATION_OCTET_STREAM`.
`protected byte[]`
DefaultResponseErrorHandler.`getResponseBody(ClientHttpResponse response)`
Read the body of the given response (for inclusion in a status exception).
`void`
RestClient.ResponseSpec.ErrorHandler.`handle(HttpRequest request, ClientHttpResponse response)`
Handle the error in the given response.
`void`
DefaultResponseErrorHandler.`handleError(URI url, HttpMethod method, ClientHttpResponse response)`
Handle the error in the given response with the given resolved status code and extra information providing access to the request URL and HTTP method.
`void`
DefaultResponseErrorHandler.`handleError(ClientHttpResponse response)`
`protected void`
DefaultResponseErrorHandler.`handleError(ClientHttpResponse response, HttpStatusCode statusCode, URI url, HttpMethod method)`
Handle the error based on the resolved status code.
`protected void`
ExtractingResponseErrorHandler.`handleError(ClientHttpResponse response, HttpStatusCode statusCode, URI url, HttpMethod method)`
`default void`
ResponseErrorHandler.`handleError(URI url, HttpMethod method, ClientHttpResponse response)`
Handle the error in the given response.
`default void`
ResponseErrorHandler.`handleError(ClientHttpResponse response)`
Deprecated, for removal: This API element is subject to removal in a future version.
in favor of `ResponseErrorHandler.handleError(URI, HttpMethod, ClientHttpResponse)`
`protected void`
RestTemplate.`handleResponse(URI url, HttpMethod method, ClientHttpResponse response)`
Handle the given response, performing appropriate logging and invoking the `ResponseErrorHandler` if necessary.
`boolean`
DefaultResponseErrorHandler.`hasError(ClientHttpResponse response)`
Delegates to `DefaultResponseErrorHandler.hasError(HttpStatusCode)` with the response status code.
`boolean`
NoOpResponseErrorHandler.`hasError(ClientHttpResponse response)`
`boolean`
ResponseErrorHandler.`hasError(ClientHttpResponse response)`
Indicate whether the given response has any errors.
`protected Function<org.springframework.core.ResolvableType,?>`
DefaultResponseErrorHandler.`initBodyConvertFunction(ClientHttpResponse response, byte[] body)`
Return a function for decoding the error content.