MCPcopy
hub / github.com/fastify/fastify / validateBodyLimitOption

Function validateBodyLimitOption

lib/route.js:629–634  ·  lib/route.js::validateBodyLimitOption
(bodyLimit)

Source from the content-addressed store, hash-verified

627}
628
629function validateBodyLimitOption (bodyLimit) {
630 if (bodyLimit === undefined) return
631 if (!Number.isInteger(bodyLimit) || bodyLimit <= 0) {
632 throw new FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT(bodyLimit)
633 }
634}
635
636function validateHandlerTimeoutOption (handlerTimeout) {
637 if (handlerTimeout === undefined) return

Callers 2

processOptionsFunction · 0.85
routeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected