Fix typos
This commit is contained in:
@@ -651,17 +651,17 @@ public interface WebClient {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Provide a function to map specific error status codes to an error
|
* Provide a function to map specific error status codes to an error
|
||||||
* signal to to be propagated downstream instead of the response.
|
* signal to be propagated downstream instead of the response.
|
||||||
* <p>By default, if there are not matching status handlers, responses
|
* <p>By default, if there are no matching status handlers, responses
|
||||||
* with status codes >= 400 are mapped to
|
* with status codes >= 400 are mapped to
|
||||||
* {@link WebClientResponseException} which is created with
|
* {@link WebClientResponseException} which is created with
|
||||||
* {@link ClientResponse#createException()}.
|
* {@link ClientResponse#createException()}.
|
||||||
* <p>To suppress the treatment of a status code as an error and process
|
* <p>To suppress the treatment of a status code as an error and process
|
||||||
* it as a normal response, return {@code Mono.empty()} from the function.
|
* it as a normal response, return {@code Mono.empty()} from the function.
|
||||||
* The response will then propagate downstream for processing.
|
* The response will then propagate downstream to be processed.
|
||||||
* <p>To ignore an error response, handle it earlier with a
|
* <p>To ignore an error response completely, and propagate neither
|
||||||
* {@link ExchangeFilterFunction filter}, or add {@code onErrorResume}
|
* response nor error, use a {@link ExchangeFilterFunction filter}, or
|
||||||
* downstream, for example:
|
* add {@code onErrorResume} downstream, for example:
|
||||||
* <pre class="code">
|
* <pre class="code">
|
||||||
* webClient.get()
|
* webClient.get()
|
||||||
* .uri("https://abc.com/account/123")
|
* .uri("https://abc.com/account/123")
|
||||||
|
|||||||
Reference in New Issue
Block a user