O'Reilly logo

Dart in Action by Chris Buckett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Server interaction with files and HTTP

This chapter covers

  • Running Dart scripts from the command line
  • Interacting with the filesystem
  • Serving content via HTTP

The Dart virtual machine is hosted in two different environments. In the previous part of the book, we looked at using Dart in the web browser, where the VM is embedded in the Dartium web browser and has access to the browser DOM via the dart:html library. In this chapter, we’ll start to explore the server-side Dart VM, which doesn’t have access to the browser DOM but instead has access to operating system I/O, such as files and network sockets via the dart:io library.

The Dart File Browser example project scenario for this chapter has a client-and-server solution that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required