Book Image

Dart By Example

By : David Mitchell
Book Image

Dart By Example

By: David Mitchell

Overview of this book

Table of Contents (17 chapters)
Dart By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 of intelligent web crawlers and bots out on the Internet. We will provide an editor to create posts, cache requests to serve pages faster, and expose the posts in other data formats.