上QQ阅读APP看书,第一时间看更新
The HTTP echo server with an HTTP driver
The time has come to rewrite the HTTP echo server as a functional and reactive application. This application contains an observable cycle. The HTTP server driver returns HTTP requests and takes HTTP responses as input, while the server logic takes HTTP requests as input and returns HTTP responses:
Figure 3.5: The echo server reactivity diagram