MCPcopy
hub / github.com/fastify/fastify / validateHandlerTimeoutOption

Function validateHandlerTimeoutOption

lib/route.js:636–641  ·  view source on GitHub ↗
(handlerTimeout)

Source from the content-addressed store, hash-verified

634}
635
636function validateHandlerTimeoutOption (handlerTimeout) {
637 if (handlerTimeout === undefined) return
638 if (!Number.isInteger(handlerTimeout) || handlerTimeout <= 0) {
639 throw new FST_ERR_ROUTE_HANDLER_TIMEOUT_OPTION_NOT_INT(handlerTimeout)
640 }
641}
642
643function validateLogLevelOption (logLevel, method, path, logger) {
644 if (logLevel == null || logLevel === '') return

Callers 1

routeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected