HTTP body parsing for gingee() middleware (json, form, multipart, raw).
Engine-internal. Behavior must match the pre-extract gingee.js body path exactly.
- Description:
- HTTP body parsing for gingee() middleware (json, form, multipart, raw). Engine-internal. Behavior must match the pre-extract gingee.js body path exactly.
Methods
(async, inner) parseBodyAndRunHandler(store, handler, als) → {Promise.<void>}
- Description:
- Parse body (if any) and invoke handler with store.$g. Caller must have already set store.$g.request / response via initializeGContext.
Parameters:
| Name | Type | Description |
|---|---|---|
store |
object | ALS store (must include req, res, $g, maxBodySize, logger, scriptPath) |
handler |
function | app script handler($g) |
als |
object | AsyncLocalStorage instance (same as modules/gingee.als) |
Returns:
- Type
- Promise.<void>