public interface WebResponseActions
WebClient
request.Modifier and Type | Method and Description |
---|---|
void |
doWithStatus(Consumer<HttpStatus> consumer)
Apply synchronous operations once the HTTP response status
has been received.
|
<T> T |
extract(ResponseExtractor<T> extractor)
Perform an extraction of the response body into a higher level representation.
|
void doWithStatus(Consumer<HttpStatus> consumer)
<T> T extract(ResponseExtractor<T> extractor)
static imports: ClientWebRequestBuilder.*, ResponseExtractors.* webClient .perform(get(url).accept(MediaType.TEXT_PLAIN)) .extract(body(String.class));