【问题标题】:Dart Server Side: Where are the advantage of using Shelf rather than IO as a Web Server?Dart Server Side:使用 Shelf 而不是 IO 作为 Web Server 的优势在哪里?
【发布时间】:2016-01-16 19:43:32
【问题描述】:

我想使用 RPC 库来开发 Dart 服务端 Restful。在库库中,带来了两个使用示例(https://github.com/dart-lang/rpc-examples/tree/master/bin):Shelf 和 IO。

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

【问题讨论】:

    标签: dart server-side dart-shelf


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2021-11-11
      • 2010-10-01
      • 1970-01-01
      • 2011-09-25
      • 1970-01-01
      • 2010-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多