Dart, besides being an excellent web programming language is, also suitable for writing server applications. In this chapter, we will specifically look at Dart's dart:io
library to write web servers and their functionality. This library is built to work asynchronously so that the server can handle many requests at the same time (concurrently). It provides the class HttpRequest
to write command-line clients. The Dart team also wrote the http_server
package available from pub package manager. This package needs dart:io
and provides some higher-level classes to make it easier to write clients and servers.
DART Cookbook
By :
DART Cookbook
By:
Overview of this book
Table of Contents (18 chapters)
Dart Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Working with Dart Tools
Structuring, Testing, and Deploying an Application
Working with Data Types
Object Orientation
Handling Web Applications
Working with Files and Streams
Working with Web Servers
Working with Futures, Tasks, and Isolates
Working with Databases
Polymer Dart Recipes
Working with Angular Dart
Index
Customer Reviews