darukjs / daruk

a node.js web framework based on typescript
http://darukjs.com
MIT License
935 stars 79 forks source link

[Feature] built in ctx.request.body middleware in Daruk #61

Closed xiaojue closed 5 years ago

xiaojue commented 5 years ago

ctx.request.body will built in the framework

himself65 commented 5 years ago

what’s this meaning for?

xiaojue commented 5 years ago

@Himself65 support ctx.request.body~

update!

himself65 commented 5 years ago

why don’t use koa-bodyparser?

―― by Himself65 Outlookhttps://aka.ms/qtex0l


发件人: xiaojue notifications@github.com 发送时间: Thursday, May 16, 2019 4:30:36 PM 收件人: darukjs/daruk 抄送: 扩散性百万甜面包; Mention 主题: Re: [darukjs/daruk] [Feature] built in ctx.request.body middleware in Daruk (#61)

@Himself65https://github.com/Himself65 support ctx.request.body~

update!

― You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/darukjs/daruk/issues/61?email_source=notifications&email_token=ADLAM6GXYAPTG2U76ECQXZTPVULSZA5CNFSM4HNISK42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVRCQCI#issuecomment-492972041, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADLAM6CZPDSF6GFOAGZZ3PDPVULSZANCNFSM4HNISK4Q.

xiaojue commented 5 years ago

https://github.com/darukjs/daruk/commit/008029a55916f7720bf7c7a385223e26d153696e

use koa-body and add daruk options bodyOptions