Skip to main content

Module params

Module params 

Source
Expand description

Query parameters, from wherever they arrived.

ClassesRouter merges req.body with the decoded query string before reading either (ClassesRouter.js:23, :49), so a where sent in a POST body reaches the same code as one sent in the URL. A /batch sub-request has no URL to carry them at all, so its parameters are its body. One type for both, built at each entry point, so the readers below cannot know or care which happened.

Values are held as strings, which is the query-string form. A caller that starts from JSON re-encodes objects and arrays as JSON text, which is what a real query string carries.

Structsยง

Params
Parameters for one request.