Mercurial
comparison benchmark/bun-http-framework-benchmark/src/node/adonis/config/bodyparser.js @ 183:a8976a008a9d
[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 23 Jan 2026 21:19:08 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 179:8d17f6e6e290 | 183:a8976a008a9d |
|---|---|
| 1 "use strict"; | |
| 2 Object.defineProperty(exports, "__esModule", { value: true }); | |
| 3 const bodyParserConfig = { | |
| 4 whitelistedMethods: ['POST', 'PUT', 'PATCH', 'DELETE'], | |
| 5 json: { | |
| 6 encoding: 'utf-8', | |
| 7 limit: '1mb', | |
| 8 strict: true, | |
| 9 types: [ | |
| 10 'application/json', | |
| 11 'application/json-patch+json', | |
| 12 'application/vnd.api+json', | |
| 13 'application/csp-report', | |
| 14 ], | |
| 15 }, | |
| 16 form: { | |
| 17 encoding: 'utf-8', | |
| 18 limit: '1mb', | |
| 19 queryString: {}, | |
| 20 convertEmptyStringsToNull: true, | |
| 21 types: ['application/x-www-form-urlencoded'], | |
| 22 }, | |
| 23 raw: { | |
| 24 encoding: 'utf-8', | |
| 25 limit: '1mb', | |
| 26 queryString: {}, | |
| 27 types: ['text/*'], | |
| 28 }, | |
| 29 multipart: { | |
| 30 autoProcess: true, | |
| 31 processManually: [], | |
| 32 encoding: 'utf-8', | |
| 33 convertEmptyStringsToNull: true, | |
| 34 maxFields: 1000, | |
| 35 limit: '20mb', | |
| 36 types: ['multipart/form-data'], | |
| 37 }, | |
| 38 }; | |
| 39 exports.default = bodyParserConfig; | |
| 40 //# sourceMappingURL=bodyparser.js.map |