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

Function validateHandlerTimeoutOption

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

Source from the content-addressed store, hash-verified

626}
627
628function validateHandlerTimeoutOption (handlerTimeout) {
629 if (handlerTimeout === undefined) return
630 if (!Number.isInteger(handlerTimeout) || handlerTimeout <= 0) {
631 throw new FST_ERR_ROUTE_HANDLER_TIMEOUT_OPTION_NOT_INT(handlerTimeout)
632 }
633}
634
635function validateLogLevelOption (logLevel, method, path, logger) {
636 if (logLevel == null || logLevel === '') return

Callers 1

routeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected