clemos / haxe-js-kit

Haxe tools and externs for Javascript and Node.js
MIT License
128 stars 42 forks source link

Add body to Request extern #165

Closed mikicho closed 7 years ago

mikicho commented 7 years ago

Accord to ExpressJS API, Request class should have body data member.

clemos commented 7 years ago

it's actually part of https://github.com/clemos/haxe-js-kit/blob/develop/js/npm/express/BodyParser.hx#L32 you can use it like :

using js.npm.express.BodyParser;
...
var body = req.body();