Dart 服务器端:使用 Shelf 而不是 IO 作为 Web 服务器的优势在哪里?

Dart Server Side: Where are the advantage of using Shelf rather than IO as a Web Server?

我想使用 RPC 库开发 Dart 服务器端 Restful。在图书馆资料库中,它带来了两个如何使用的例子(https://github.com/dart-lang/rpc-examples/tree/master/bin):Shelf 和 IO。

我想更好地理解Shelf和IO之间的区别。使用Shelf而不是IO作为Web Server的优势在哪里?

Shelf 是服务器应用程序的模块化框架。货架建立在 dart:io 之上。 quite a few packages available for shelf(来自 Dart 团队和第 3 方)使构建复杂的服务器应用程序变得非常容易。
如果您更喜欢构建自己的解决方案,请直接使用 dart:io