Dart Server Side: Where is the advantage of using Shelf instead of IO as a web server?

I want to use the RPC library to develop a Dart server side Restful. In the library repository, he uses two examples of how to use ( https://github.com/dart-lang/rpc-examples/tree/master/bin ): shelf and I / O index.

I would like to better understand the differences between Shelf and IO. Where is the advantage of using Shelf instead of IO as a web server?

+4
source share
1 answer

A shelf is a modular structure for a server application. The shelf is built on top dart:io. There are quite a few packages available for the shelf (from the Dart team and third-party developers), which simplifies the creation of complex server applications. <w> If you prefer to create your own solution, use only dart:iodirectly.

+5
source

Source: https://habr.com/ru/post/1624568/


All Articles