O'Reilly logo

Dart By Example by Davy Mitchell

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

A blog editor

A blog will have an administration section that will allow us to update the blog using the Web. This will be accessible through the address http://localhost:8080/admin, using the admin login as the username and Password1 as the password (both case sensitive).

Tip

Never ever ever use such a simple login in a real application!

The admin section of the blog's website will consist of web forms. The forms will use the post method so that the blog server will have to detect this correctly in the _handleRequest method of the BlogServerApp class to handle the request. This is exposed by the method property of the request object, as shown in the following code snippet:

if (request.method == 'POST') {
  _handleFormPost(request);
}

POST requests still ...

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