Summary
We saw how the dart:io package can help build an HTTP server very quickly, and how frameworks can make this even easier. Using some simple processing of the request string, we can do more than serve the files flatly from the filesystem, such as serving the most recent entries on the front page.
The freedom of being out of the browser allows the manipulation of the filesystem. Despite not being on the Web, there is still good support for HTTP operations, which we used to test the performance of the server. Dart server applications can easily be installed on industry-standard host operating systems in a standard manner.
Our blog server is off to a good start. To progress, it needs to do more for the author, the reader, and the growing number ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access