circe-body-parser 请求体解析
支持
json
,text
,form
类型
安装
使用
app.usebodyParser app.use
参数
onError?
: (err: Error, ctx: Koa.Context) => voidencoding?
: string = 'utf-8'jsonLimit?
: string = '1mb'formLimit?
: string = '56kb'textLimit?
: string = '56kb'multipart?
: boolean = falseformidableOptions?
: IIncomingFormOptions = {}- 参考:formidable
- encoding?: string
- uploadDir?: string
- keepExtensions?: boolean
- maxFieldsSize?: number
- maxFields?: number
- hash?: string | boolean
- multiples?: boolean
- type?: string
- bytesReceived?: number
- bytesExpected?: number