MCPcopy Create free account

hub / github.com/fastify/fastify / functions

Functions658 in github.com/fastify/fastify

↓ 5 callersFunctionhandler
(request, reply)
lib/handle-request.js:74
↓ 5 callersMethodincomingRequest
* Logs an incoming request at `info` level. * * @param {object} request Fastify request object. * @param {object} reply Fastify r
lib/log-controller.js:47
↓ 5 callersFunctiononListenHookRunner
(server)
lib/hooks.js:183
↓ 5 callersMethodremoveHeader
(key: HttpHeader)
types/reply.d.ts:58
↓ 5 callersMethodremoveTrailer
(key: string)
types/reply.d.ts:79
↓ 5 callersMethodsetDecorator
(name: string | symbol, value: T)
types/request.d.ts:115
↓ 5 callersMethodsetSchemaErrorFormatter
(errorFormatter: SchemaErrorFormatter)
types/instance.d.ts:540
↓ 5 callersFunctionsubscribe
(name, handler)
test/diagnostics-channel/async-error-handler.test.js:18
↓ 5 callersFunctiontestHandlerOrBeforeHandlerHook
(test, hookOrHandler)
test/skip-reply-send.test.js:115
↓ 5 callersFunctionvalidate
(context, request, execution)
lib/validation.js:146
↓ 4 callersFunctionbuild
()
test/internals/decorator.test.js:11
↓ 4 callersFunctionbuildErrorHandler
(parent = rootErrorHandler, func)
lib/error-handler.js:124
↓ 4 callersFunctioncheckExistence
(instance, name)
lib/decorate.js:81
↓ 4 callersFunctioncleanup
()
test/http2/plain.test.js:148
↓ 4 callersFunctioncompleted
()
test/decorator.test.js:473
↓ 4 callersFunctionend
()
test/request-error.test.js:149
↓ 4 callersFunctionfirst
(req, payload, done)
test/content-parser.test.js:8
↓ 4 callersFunctiongetMeta
(fn)
lib/plugin-utils.js:19
↓ 4 callersFunctionhandler
()
test/404s.test.js:1010
↓ 4 callersFunctionhasKey
(fn, name)
lib/decorate.js:89
↓ 4 callersMethodhasTrailer
(key: string)
types/reply.d.ts:78
↓ 4 callersFunctionlogStreamError
(err, reply, res)
lib/reply.js:744
↓ 4 callersMethodserialize
(payload: any)
types/reply.d.ts:66
↓ 4 callersMethodserializerError
* Logs an error when the serializer for a given status code fails. * * @param {Error} error The serialization error. * @param {object
lib/log-controller.js:151
↓ 4 callersFunctionsetErrorStatusCode
(reply, err)
lib/error-status.js:7
↓ 4 callersFunctiontestBeforeHandlerHook
(hook)
test/route-hooks.test.js:182
↓ 4 callersFunctionvalidateParam
(validatorFunction, request, paramName)
lib/validation.js:118
↓ 4 callersFunctionwrapThenable
(thenable, reply, store)
lib/wrap-thenable.js:12
↓ 4 callersMethodwriteHeadError
* Logs a warning when writeHead fails during error handling. * * @param {Error} error The error thrown by writeHead. * @param {object
lib/log-controller.js:133
↓ 3 callersFunction_checkDecorators
(that, instance, decorators, name)
lib/plugin-utils.js:98
↓ 3 callersFunctionappendStackTrace
(oldErr, newErr)
lib/errors.js:523
↓ 3 callersFunctionassertNotStarted
(instance, name)
lib/decorate.js:144
↓ 3 callersFunctionassertsThrowOnUndeclaredDecorator
(notDecorated, instanceType)
test/decorator.test.js:1259
↓ 3 callersFunctionbuildRequest
(R, trustProxy)
lib/request.js:63
↓ 3 callersFunctionexit
(err)
lib/hooks.js:100
↓ 3 callersFunctionhasInstanceProperty
(konstructor, name)
lib/decorate.js:93
↓ 3 callersFunctionhookRunnerApplication
(hookName, boot, server, cb)
lib/hooks.js:93
↓ 3 callersMethodisLogDisabled
()
test/logger/logging.test.js:92
↓ 3 callersFunctionnow
()
lib/logger-factory.js:145
↓ 3 callersMethodprintPlugins
* Prints the representation of the plugin tree used by avvio, the plugin registration system
types/instance.d.ts:582
↓ 3 callersFunctionsafeWriteHead
(reply, statusCode)
lib/reply.js:573
↓ 3 callersFunctionsecond
(req, payload, done)
test/content-parser.test.js:9
↓ 3 callersMethodtrace
(...args: unknown[])
test/types/logger.tst.ts:56
↓ 3 callersFunctionvalidate
({ params, body, querystring, headers, response })
test/schema-special-usage.test.js:1034
↓ 3 callersFunctionvalidateAllLinks
()
scripts/validate-ecosystem-links.js:98
↓ 3 callersFunctionvalidateLogger
* Determines if a provided logger object meets the requirements * of a Fastify compatible logger. * * @param {object} logger Object to validate. *
lib/logger-factory.js:67
↓ 3 callersMethodwriteEarlyHints
(hints: Record<string, string | string[]>, callback?: () => void)
types/reply.d.ts:61
↓ 2 callersFunctionanswer
(ret)
lib/validation.js:138
↓ 2 callersFunctionassertsRequestDecoration
(request, name)
lib/request.js:152
↓ 2 callersFunctionbuildCertificate
()
test/build-certificate.js:94
↓ 2 callersFunctionbuildRegularRequest
(R)
lib/request.js:71
↓ 2 callersFunctioncheckDependencies
(instance, name, deps)
lib/decorate.js:114
↓ 2 callersFunctioncheckReferenceType
(name, fn)
lib/decorate.js:69
↓ 2 callersFunctioncleanup
()
lib/server.js:296
↓ 2 callersFunctioncreateNestedRoutes
(fastify, depth)
test/encapsulated-error-handler.test.js:150
↓ 2 callersFunctioncreatePinoLogger
(opts)
lib/logger-pino.js:15
↓ 2 callersFunctioncreateRouteEventHandler
()
lib/four-oh-four.js:65
↓ 2 callersFunctiondecorateConstructor
(konstructor, name, fn, dependencies)
lib/decorate.js:48
↓ 2 callersFunctiondeepFreezeObject
(object)
lib/initial-config-validation.js:19
↓ 2 callersFunctionfallbackErrorHandler
(error, reply, cb)
lib/error-handler.js:85
↓ 2 callersMethodfatal
(...args: unknown[])
test/types/logger.tst.ts:55
↓ 2 callersFunctiongetLastEntryInMultiHeaderValue
(headerValue)
lib/request.js:96
↓ 2 callersFunctiongetResponseSchema
()
test/internals/reply-serialize.test.js:18
↓ 2 callersFunctiongetSchemaSerializer
* Search for the right JSON schema compiled function in the request context * setup by the route configuration `schema.response`. * It will look for
lib/schemas.js:145
↓ 2 callersMethodgetSerializerCompiler
()
lib/schema-controller.js:123
↓ 2 callersFunctiongetServerInstance
(options, httpHandler)
lib/server.js:309
↓ 2 callersFunctiongetStream
()
test/inject.test.js:373
↓ 2 callersFunctiongetUrl
(fastify, lookup)
test/listen.4.test.js:11
↓ 2 callersMethodgetValidatorCompiler
()
lib/schema-controller.js:119
↓ 2 callersFunctionhandleError
(reply, error, cb)
lib/error-handler.js:30
↓ 2 callersFunctionhandleRequest
(err, request, reply)
lib/handle-request.js:21
↓ 2 callersFunctionhandler
(request)
test/types/logger.tst.ts:91
↓ 2 callersFunctionisCustomSchemaPrototype
* Checks whether a schema is a non-plain object. * * @param {*} schema the schema to check * @returns {boolean} true if schema has a custom prototy
lib/schemas.js:54
↓ 2 callersFunctionmakeRequest
(path)
test/register.test.js:43
↓ 2 callersFunctiononSendEnd
(reply, payload)
lib/reply.js:585
↓ 2 callersFunctionpreHandlerCallback
(err, request, reply)
lib/handle-request.js:134
↓ 2 callersFunctionpreSerializationHook
(reply, payload)
lib/reply.js:510
↓ 2 callersFunctionpreValidationCallback
(err, request, reply)
lib/handle-request.js:91
↓ 2 callersFunctionrequest
()
test/internals/reply.test.js:1666
↓ 2 callersMethodrouting
(req: RawRequest, res: RawReply)
types/instance.d.ts:179
↓ 2 callersMethodserviceUnavailable
(logger, server)
test/internals/logger.test.js:452
↓ 2 callersMethodsetupSerializer
* This method will be called when a serializer must be setup. * Do not setup the compiler more than once * @param {object} serverOptions the fas
lib/schema-controller.js:153
↓ 2 callersMethodsetupValidator
* This method will be called when a validator must be setup. * Do not setup the compiler more than once * @param {object} serverOptions the fast
lib/schema-controller.js:140
↓ 2 callersFunctionthenableRejects
(t, promise, error)
test/register.test.js:122
↓ 2 callersFunctionvalidateBodyLimitOption
(bodyLimit)
lib/route.js:621
↓ 2 callersFunctionvalidateSchemaErrorFormatter
(schemaErrorFormatter)
fastify.js:991
↓ 2 callersFunctionwrap
(fn, server)
lib/hooks.js:152
↓ 1 callersFunctionbuildAsyncConstraintCallback
(isAsync, req, res)
fastify.js:690
↓ 1 callersFunctionbuildDefaultGenReqId
()
lib/req-id-gen-factory.js:31
↓ 1 callersFunctionbuildHooks
(h)
lib/hooks.js:73
↓ 1 callersFunctionbuildOptionalHeaderReqId
(requestIdHeader, genReqId)
lib/req-id-gen-factory.js:46
↓ 1 callersFunctionbuildRequestWithTrustProxy
(R, trustProxy)
lib/request.js:102
↓ 1 callersFunctionbuildRoutePrefix
(instancePrefix, pluginPrefix)
lib/plugin-override.js:76
↓ 1 callersFunctionbuildRouterOptions
(options, defaultOptions)
lib/route.js:661
↓ 1 callersFunctionbuildRouting
(options)
lib/route.js:77
↓ 1 callersFunctioncleanup
()
test/logger/logger-test-utils.js:20
↓ 1 callersFunctioncompileSchemasForSerialization
(context, compile)
lib/validation.js:18
↓ 1 callersFunctioncompileSchemasForValidation
(context, compile, isCustom)
lib/validation.js:57
↓ 1 callersFunctioncreateCloseHttp2SessionsByHttp2Server
* @param {http2.Http2Server} http2Server * @returns {() => void}
lib/server.js:403
↓ 1 callersFunctioncreateDeferredPromise
()
test/listen.5.test.js:9
← previousnext →101–200 of 658, ranked by callers