Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fastify/fastify
/ functions
Functions
658 in github.com/fastify/fastify
⨍
Functions
658
◇
Types & classes
142
↓ 5 callers
Function
handler
(request, reply)
lib/handle-request.js:74
↓ 5 callers
Method
incomingRequest
* Logs an incoming request at `info` level. * * @param {object} request Fastify request object. * @param {object} reply Fastify r
lib/log-controller.js:47
↓ 5 callers
Function
onListenHookRunner
(server)
lib/hooks.js:183
↓ 5 callers
Method
removeHeader
(key: HttpHeader)
types/reply.d.ts:58
↓ 5 callers
Method
removeTrailer
(key: string)
types/reply.d.ts:79
↓ 5 callers
Method
setDecorator
(name: string | symbol, value: T)
types/request.d.ts:115
↓ 5 callers
Method
setSchemaErrorFormatter
(errorFormatter: SchemaErrorFormatter)
types/instance.d.ts:540
↓ 5 callers
Function
subscribe
(name, handler)
test/diagnostics-channel/async-error-handler.test.js:18
↓ 5 callers
Function
testHandlerOrBeforeHandlerHook
(test, hookOrHandler)
test/skip-reply-send.test.js:115
↓ 5 callers
Function
validate
(context, request, execution)
lib/validation.js:146
↓ 4 callers
Function
build
()
test/internals/decorator.test.js:11
↓ 4 callers
Function
buildErrorHandler
(parent = rootErrorHandler, func)
lib/error-handler.js:124
↓ 4 callers
Function
checkExistence
(instance, name)
lib/decorate.js:81
↓ 4 callers
Function
cleanup
()
test/http2/plain.test.js:148
↓ 4 callers
Function
completed
()
test/decorator.test.js:473
↓ 4 callers
Function
end
()
test/request-error.test.js:149
↓ 4 callers
Function
first
(req, payload, done)
test/content-parser.test.js:8
↓ 4 callers
Function
getMeta
(fn)
lib/plugin-utils.js:19
↓ 4 callers
Function
handler
()
test/404s.test.js:1010
↓ 4 callers
Function
hasKey
(fn, name)
lib/decorate.js:89
↓ 4 callers
Method
hasTrailer
(key: string)
types/reply.d.ts:78
↓ 4 callers
Function
logStreamError
(err, reply, res)
lib/reply.js:744
↓ 4 callers
Method
serialize
(payload: any)
types/reply.d.ts:66
↓ 4 callers
Method
serializerError
* 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 callers
Function
setErrorStatusCode
(reply, err)
lib/error-status.js:7
↓ 4 callers
Function
testBeforeHandlerHook
(hook)
test/route-hooks.test.js:182
↓ 4 callers
Function
validateParam
(validatorFunction, request, paramName)
lib/validation.js:118
↓ 4 callers
Function
wrapThenable
(thenable, reply, store)
lib/wrap-thenable.js:12
↓ 4 callers
Method
writeHeadError
* 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 callers
Function
_checkDecorators
(that, instance, decorators, name)
lib/plugin-utils.js:98
↓ 3 callers
Function
appendStackTrace
(oldErr, newErr)
lib/errors.js:523
↓ 3 callers
Function
assertNotStarted
(instance, name)
lib/decorate.js:144
↓ 3 callers
Function
assertsThrowOnUndeclaredDecorator
(notDecorated, instanceType)
test/decorator.test.js:1259
↓ 3 callers
Function
buildRequest
(R, trustProxy)
lib/request.js:63
↓ 3 callers
Function
exit
(err)
lib/hooks.js:100
↓ 3 callers
Function
hasInstanceProperty
(konstructor, name)
lib/decorate.js:93
↓ 3 callers
Function
hookRunnerApplication
(hookName, boot, server, cb)
lib/hooks.js:93
↓ 3 callers
Method
isLogDisabled
()
test/logger/logging.test.js:92
↓ 3 callers
Function
now
()
lib/logger-factory.js:145
↓ 3 callers
Method
printPlugins
* Prints the representation of the plugin tree used by avvio, the plugin registration system
types/instance.d.ts:582
↓ 3 callers
Function
safeWriteHead
(reply, statusCode)
lib/reply.js:573
↓ 3 callers
Function
second
(req, payload, done)
test/content-parser.test.js:9
↓ 3 callers
Method
trace
(...args: unknown[])
test/types/logger.tst.ts:56
↓ 3 callers
Function
validate
({ params, body, querystring, headers, response })
test/schema-special-usage.test.js:1034
↓ 3 callers
Function
validateAllLinks
()
scripts/validate-ecosystem-links.js:98
↓ 3 callers
Function
validateLogger
* 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 callers
Method
writeEarlyHints
(hints: Record<string, string | string[]>, callback?: () => void)
types/reply.d.ts:61
↓ 2 callers
Function
answer
(ret)
lib/validation.js:138
↓ 2 callers
Function
assertsRequestDecoration
(request, name)
lib/request.js:152
↓ 2 callers
Function
buildCertificate
()
test/build-certificate.js:94
↓ 2 callers
Function
buildRegularRequest
(R)
lib/request.js:71
↓ 2 callers
Function
checkDependencies
(instance, name, deps)
lib/decorate.js:114
↓ 2 callers
Function
checkReferenceType
(name, fn)
lib/decorate.js:69
↓ 2 callers
Function
cleanup
()
lib/server.js:296
↓ 2 callers
Function
createNestedRoutes
(fastify, depth)
test/encapsulated-error-handler.test.js:150
↓ 2 callers
Function
createPinoLogger
(opts)
lib/logger-pino.js:15
↓ 2 callers
Function
createRouteEventHandler
()
lib/four-oh-four.js:65
↓ 2 callers
Function
decorateConstructor
(konstructor, name, fn, dependencies)
lib/decorate.js:48
↓ 2 callers
Function
deepFreezeObject
(object)
lib/initial-config-validation.js:19
↓ 2 callers
Function
fallbackErrorHandler
(error, reply, cb)
lib/error-handler.js:85
↓ 2 callers
Method
fatal
(...args: unknown[])
test/types/logger.tst.ts:55
↓ 2 callers
Function
getLastEntryInMultiHeaderValue
(headerValue)
lib/request.js:96
↓ 2 callers
Function
getResponseSchema
()
test/internals/reply-serialize.test.js:18
↓ 2 callers
Function
getSchemaSerializer
* 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 callers
Method
getSerializerCompiler
()
lib/schema-controller.js:123
↓ 2 callers
Function
getServerInstance
(options, httpHandler)
lib/server.js:309
↓ 2 callers
Function
getStream
()
test/inject.test.js:373
↓ 2 callers
Function
getUrl
(fastify, lookup)
test/listen.4.test.js:11
↓ 2 callers
Method
getValidatorCompiler
()
lib/schema-controller.js:119
↓ 2 callers
Function
handleError
(reply, error, cb)
lib/error-handler.js:30
↓ 2 callers
Function
handleRequest
(err, request, reply)
lib/handle-request.js:21
↓ 2 callers
Function
handler
(request)
test/types/logger.tst.ts:91
↓ 2 callers
Function
isCustomSchemaPrototype
* 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 callers
Function
makeRequest
(path)
test/register.test.js:43
↓ 2 callers
Function
onSendEnd
(reply, payload)
lib/reply.js:585
↓ 2 callers
Function
preHandlerCallback
(err, request, reply)
lib/handle-request.js:134
↓ 2 callers
Function
preSerializationHook
(reply, payload)
lib/reply.js:510
↓ 2 callers
Function
preValidationCallback
(err, request, reply)
lib/handle-request.js:91
↓ 2 callers
Function
request
()
test/internals/reply.test.js:1666
↓ 2 callers
Method
routing
(req: RawRequest, res: RawReply)
types/instance.d.ts:179
↓ 2 callers
Method
serviceUnavailable
(logger, server)
test/internals/logger.test.js:452
↓ 2 callers
Method
setupSerializer
* 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 callers
Method
setupValidator
* 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 callers
Function
thenableRejects
(t, promise, error)
test/register.test.js:122
↓ 2 callers
Function
validateBodyLimitOption
(bodyLimit)
lib/route.js:621
↓ 2 callers
Function
validateSchemaErrorFormatter
(schemaErrorFormatter)
fastify.js:991
↓ 2 callers
Function
wrap
(fn, server)
lib/hooks.js:152
↓ 1 callers
Function
buildAsyncConstraintCallback
(isAsync, req, res)
fastify.js:690
↓ 1 callers
Function
buildDefaultGenReqId
()
lib/req-id-gen-factory.js:31
↓ 1 callers
Function
buildHooks
(h)
lib/hooks.js:73
↓ 1 callers
Function
buildOptionalHeaderReqId
(requestIdHeader, genReqId)
lib/req-id-gen-factory.js:46
↓ 1 callers
Function
buildRequestWithTrustProxy
(R, trustProxy)
lib/request.js:102
↓ 1 callers
Function
buildRoutePrefix
(instancePrefix, pluginPrefix)
lib/plugin-override.js:76
↓ 1 callers
Function
buildRouterOptions
(options, defaultOptions)
lib/route.js:661
↓ 1 callers
Function
buildRouting
(options)
lib/route.js:77
↓ 1 callers
Function
cleanup
()
test/logger/logger-test-utils.js:20
↓ 1 callers
Function
compileSchemasForSerialization
(context, compile)
lib/validation.js:18
↓ 1 callers
Function
compileSchemasForValidation
(context, compile, isCustom)
lib/validation.js:57
↓ 1 callers
Function
createCloseHttp2SessionsByHttp2Server
* @param {http2.Http2Server} http2Server * @returns {() => void}
lib/server.js:403
↓ 1 callers
Function
createDeferredPromise
()
test/listen.5.test.js:9
← previous
next →
101–200 of 658, ranked by callers