Top Description Methods
org.springframework.http.client

public Interface ClientHttpRequestExecution

Known Direct Implementers
org.springframework.http.client.InterceptingClientHttpRequest.InterceptingRequestExecution
Annotations
@FunctionalInterface
Imports
java.io.IOException, org.springframework.http.HttpRequest

Represents the context of a client-side HTTP request execution.

Used to invoke the next interceptor in the interceptor chain, or - if the calling interceptor is last - execute the request itself.

Author
Arjen Poutsma
Since
3.1
See Also
ClientHttpRequestInterceptor

Method Summary

Modifier and TypeMethod and Description
public ClientHttpResponse

Returns:

the response
execute
(HttpRequest
the request, containing method, URI, and headers
request
,
byte[]
the body of the request to execute
body
)

Execute the request with the given request attributes and body, and return the response.

Method Detail

executeback to summary
public ClientHttpResponse execute(HttpRequest request, byte[] body) throws IOException

Execute the request with the given request attributes and body, and return the response.

Parameters
request:HttpRequest

the request, containing method, URI, and headers

body:byte[]

the body of the request to execute

Returns:ClientHttpResponse

the response

Exceptions
IOException:
in case of I/O errors