dartist / express

A thin express-js inspired layer around Dart's primitive HttpServer APIs
Other
126 stars 11 forks source link

Added the body of the request to the context #17

Closed SamVerschueren closed 10 years ago

SamVerschueren commented 10 years ago

Fixed https://github.com/dartist/express/issues/6 by adding a body property to the context.

var app = new Express()
  ..post('/mail', (ctx) {
    var name = ctx.body['name'];
    var mail = ctx.body['mail'];
  });
mythz commented 10 years ago

great stuff, thx.