Interface BlockingWebClient

All Superinterfaces:
ClientBuilderParams, Unwrappable

@UnstableApi public interface BlockingWebClient extends ClientBuilderParams, Unwrappable
A blocking web client that waits for an HttpResponse to be fully aggregated. If you want to create a BlockingWebClient with various options, create a WebClient first and convert it into a BlockingWebClient via WebClient.blocking().

 BlockingWebClient client =
     WebClient.builder("https://api.example.com")
              .responseTimeout(Duration.ofSeconds(10))
              .decorator(LoggingClient.newDecorator())
              ...
              .build()
              .blocking();
 

Note that you should never use this client in an EventLoop thread. Use it from a non-EventLoop thread such as BlockingTaskExecutor.