October 2017
Intermediate to advanced
396 pages
10h 2m
English
The Spring 5 Framework introduces a functional and reactive WebClient. It is a fully non-blocking and reactive web client, and an alternative to RestTemplate. It creates the network input and output in the form of reactive ClientHttpRequest and ClientHttpRespones. It creates the body of the request and response in the form of Flux<DataBuffer> instead of InputStream and OutputStream.
Let's see the code for the web client, which creates a Client.java class:
package com.packt.patterninspring.chapter11.web.reactive.function;
//Imports here
public class Client {
private ExchangeFunction exchange = ExchangeFunctions.create(new ReactorClientHttpConnector()); public void findAllAccounts() { URI uri ...Read now
Unlock full access