MCPcopy Create free account
hub / github.com/fastify/fastify / validateBodyLimitOption

Function validateBodyLimitOption

lib/route.js:621–626  ·  view source on GitHub ↗
(bodyLimit)

Source from the content-addressed store, hash-verified

619}
620
621function validateBodyLimitOption (bodyLimit) {
622 if (bodyLimit === undefined) return
623 if (!Number.isInteger(bodyLimit) || bodyLimit <= 0) {
624 throw new FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT(bodyLimit)
625 }
626}
627
628function validateHandlerTimeoutOption (handlerTimeout) {
629 if (handlerTimeout === undefined) return

Callers 2

processOptionsFunction · 0.85
routeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected