4

I want to use the RPC library to develop Dart server side Restful. In the library repository, it bring two exemples how to use (https://github.com/dart-lang/rpc-examples/tree/master/bin): Shelf and IO.

I would like to understand better the differences between Shelf and IO. Where are the advantage of using Shelf rather than IO as a Web Server?

Muka
  • 1,190
  • 1
  • 12
  • 27

1 Answers1

5

Shelf is a modular framework for a server application. Shelf is built on top of dart:io. There are quite a few packages available for shelf (from the Dart team and 3rd-party) that make it quite easy to build complex server applications.
If you prefer to build your own solution use just dart:io directly.

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567