MCPcopy Create free account

hub / github.com/fastify/fastify / functions

Functions658 in github.com/fastify/fastify

↓ 1,274 callersMethodsend
(...args: SendArgs<ReplyType>)
types/reply.d.ts:53
↓ 1,151 callersFunctiondone
(err, a, b)
test/internals/hook-runner.test.js:35
↓ 969 callersMethodinject
(opts: InjectOptions | string, cb: LightMyRequestCallback)
types/instance.d.ts:166
↓ 621 callersMethodaddHook
* `onRequest` is the first hook to be executed in the request lifecycle. There was no previous hook, the next hook will be `preParsing`. * Notice:
types/instance.d.ts:227
↓ 612 callersMethodclose
()
types/instance.d.ts:143
↓ 546 callersMethodafter
()
types/instance.d.ts:140
↓ 523 callersMethodlisten
(opts: FastifyListenOptions, callback: (err: Error | null, address: string) => void)
types/instance.d.ts:170
↓ 293 callersMethodready
()
types/instance.d.ts:174
↓ 271 callersMethodcode
(statusCode: Code)
types/reply.d.ts:49
↓ 260 callersMethodroute
(opts: RouteOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider
types/instance.d.ts:181
↓ 204 callersFunctionfastify
* @param {import('./fastify.js').FastifyServerOptions} serverOptions
fastify.js:90
↓ 135 callersMethodthen
(fulfilled: () => void, rejected: (err: Error) => void)
types/reply.d.ts:73
↓ 124 callersMethodtoString
()
lib/content-type.js:176
↓ 120 callersMethodaddSchema
(schema: unknown)
types/instance.d.ts:136
↓ 104 callersMethodheader
(key: HttpHeader, value: any)
types/reply.d.ts:54
↓ 96 callersMethodsetErrorHandler
* Set a function that will be invoked whenever an exception is thrown during the request lifecycle.
types/instance.d.ts:472
↓ 72 callersMethodwrite
(msg: string)
types/logger.d.ts:38
↓ 71 callersMethodsetNotFoundHandler
* Set the 404 handler
types/instance.d.ts:452
↓ 57 callersMethodhasPlugin
(name: string)
types/instance.d.ts:161
↓ 52 callersMethodfrom
* Create a ContentType instance from a header value. If the value has been * previously parsed, the cached instance will be returned. * @param {
lib/content-type.js:73
↓ 46 callersMethodwithTypeProvider
()
types/instance.d.ts:134
↓ 44 callersFunctionnext
(err)
lib/hooks.js:119
↓ 43 callersMethodtype
(contentType: string)
types/reply.d.ts:64
↓ 40 callersMethodgetSchema
(schemaId: string)
types/instance.d.ts:137
↓ 40 callersMethodvalidateInput
(input: any, schema: { [key: string]: any }, httpPart?: HTTPRequestPart)
types/request.d.ts:112
↓ 38 callersMethodgetValidationFunction
(httpPart: HTTPRequestPart)
types/request.d.ts:109
↓ 38 callersMethodinfo
(arg1: unknown, arg2?: unknown, ...args: unknown[])
test/types/logger.tst.ts:49
↓ 36 callersMethodadd
(schema)
lib/schema-controller.js:62
↓ 36 callersFunctioncb
(err, value)
lib/reply.js:905
↓ 36 callersFunctionon
()
test/custom-http-server.test.js:54
↓ 32 callersMethodstatus
(statusCode: Code)
types/reply.d.ts:50
↓ 27 callersMethodcompileValidationSchema
(schema: { [key: string]: any }, httpPart?: HTTPRequestPart)
types/request.d.ts:111
↓ 27 callersMethodsetValidatorCompiler
* Set the schema validator for all routes.
types/instance.d.ts:515
↓ 24 callersMethodchild
(bindings: Bindings, options?: ChildLoggerOptions)
types/logger.d.ts:28
↓ 22 callersMethodhasRequestDecorator
(decorator: string | symbol)
types/instance.d.ts:159
↓ 22 callersMethodprintRoutes
* Prints the representation of the internal radix tree used by the router
types/instance.d.ts:577
↓ 20 callersMethodgetSchemas
()
types/instance.d.ts:138
↓ 19 callersMethodgetDecorator
(name: string | symbol)
types/reply.d.ts:80
↓ 18 callersMethoderror
(...args: unknown[])
test/types/logger.tst.ts:54
↓ 18 callersFunctionstepIn
()
test/toolkit.js:9
↓ 17 callersFunctionvalidate
()
test/internals/initial-config.test.js:81
↓ 16 callersMethodaddHttpMethod
* Add a non-standard HTTP method * * Methods defined by default include `GET`, `HEAD`, `TRACE`, `DELETE`, * `OPTIONS`, `PATCH`, `PUT` and `PO
types/instance.d.ts:564
↓ 16 callersMethodhasRoute
(opts: Pick<RouteOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypePro
types/instance.d.ts:207
↓ 16 callersMethodwarn
(...args: unknown[])
test/types/logger.tst.ts:53
↓ 15 callersMethodgetHeader
(key: HttpHeader)
types/reply.d.ts:56
↓ 15 callersFunctionrequest
(url, cleanup = () => { })
test/logger/logger-test-utils.js:28
↓ 14 callersFunctionreqIdGenFactory
* @param {string} [requestIdHeader] * @param {GenerateRequestId} [optGenReqId] * @returns {GenerateRequestId}
lib/req-id-gen-factory.js:16
↓ 14 callersMethodsetReplySerializer
* Set the reply serializer for all routes.
types/instance.d.ts:535
↓ 13 callersFunctioncompleted
()
test/genReqId.test.js:152
↓ 13 callersMethoddebug
(...args: unknown[])
test/types/logger.tst.ts:57
↓ 13 callersMethodhasReplyDecorator
(decorator: string | symbol)
types/instance.d.ts:160
↓ 13 callersMethodhijack
()
types/reply.d.ts:62
↓ 13 callersMethodserializeInput
(input: { [key: string]: unknown }, schema: { [key: string]: unknown }, httpStatus?: string, contentType?: str
types/reply.d.ts:71
↓ 13 callersMethodsetChildLoggerFactory
* Hook function that is called when creating a child logger instance for each request * which allows for modifying or adding child logger bindings
types/instance.d.ts:505
↓ 13 callersFunctionthrowIfAlreadyStarted
(msg)
fastify.js:463
↓ 12 callersMethodaddresses
()
types/instance.d.ts:133
↓ 12 callersFunctionendRouteHook
(doneOrPayload, done, doneValue)
test/route-hooks.test.js:9
↓ 12 callersMethodfindRoute
(opts: Pick<RouteOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypePro
types/instance.d.ts:213
↓ 12 callersFunctionhookRunnerGenerator
(iterator)
lib/hooks.js:230
↓ 12 callersFunctionserialize
* This function runs when a payload that is not a string|buffer|stream or null * should be serialized to be streamed to the response. * This is the
lib/reply.js:1064
↓ 11 callersFunctionfn
()
test/internals/plugin.test.js:24
↓ 11 callersMethodgetSerializationFunction
(httpStatus: string, contentType?: string)
types/reply.d.ts:68
↓ 11 callersMethodhasConstraintStrategy
(strategyName: string)
types/instance.d.ts:164
↓ 11 callersMethodsetSchemaController
* Set the schema controller for all routes.
types/instance.d.ts:530
↓ 10 callersMethodaddConstraintStrategy
(strategy: ConstraintStrategy<FindMyWayVersion<RawServer>, unknown>)
types/instance.d.ts:163
↓ 10 callersMethodcallNotFound
()
types/reply.d.ts:63
↓ 10 callersMethodcompileSerializationSchema
(schema: { [key: string]: unknown }, httpStatus?: string, contentType?: string)
types/reply.d.ts:70
↓ 10 callersFunctionfetchForwardedRequest
(fastifyServer, forHeader, path, protoHeader, hostHeader = 'fastify.test')
test/trust-proxy.test.js:9
↓ 10 callersFunctiongetDefaultSchema
()
test/internals/reply-serialize.test.js:7
↓ 10 callersMethodheaders
(values: Partial<Record<HttpHeader, number | string | string[] | undefined>>)
types/reply.d.ts:55
↓ 10 callersMethodsetGenReqId
* Set a function that will generate a request-ids
types/instance.d.ts:479
↓ 10 callersFunctiontestRequestValues
(t, req, options)
test/trust-proxy.test.js:23
↓ 9 callersFunctionextractGitHubLinks
(content)
scripts/validate-ecosystem-links.js:31
↓ 9 callersFunctionloadValidateEcosystemLinksModule
()
test/scripts/validate-ecosystem-links.test.js:8
↓ 9 callersMethodredirect
(url: string, statusCode?: number)
types/reply.d.ts:60
↓ 9 callersMethodserializer
(fn: (payload: any) => string)
types/reply.d.ts:65
↓ 9 callersMethodsetSerializerCompiler
* Set the schema serializer for all routes.
types/instance.d.ts:525
↓ 8 callersMethodhasHeader
(key: HttpHeader)
types/reply.d.ts:59
↓ 8 callersFunctionnormalizeSchema
(routeSchemas, serverOptions)
lib/schemas.js:58
↓ 8 callersFunctiononSendHookRunner
(functions, request, reply, payload, cb)
lib/hooks.js:278
↓ 8 callersFunctionwrapValidationError
(result, dataVar, schemaErrorFormatter)
lib/validation.js:256
↓ 7 callersFunctioncheckGitHubRepo
(owner, repo, retries = 3)
scripts/validate-ecosystem-links.js:48
↓ 7 callersMethodhasDecorator
(decorator: string | symbol)
types/instance.d.ts:158
↓ 7 callersMethodisLogDisabled
* Checks whether request logging is disabled for the given request. * * @param {object} req Raw or Fastify request object. * @returns {boole
lib/log-controller.js:34
↓ 6 callersFunctionaddRandomRoute
(server)
test/schema-feature.test.js:1463
↓ 6 callersFunctioncreateChildLogger
* Utility for creating a child logger with the appropriate bindings, logger factory * and validation. * @param {object} context * @param {import('.
lib/logger-factory.js:29
↓ 6 callersFunctioncreateLogController
(options)
lib/logger-factory.js:132
↓ 6 callersFunctioncreateServer
(options, httpHandler)
lib/server.js:27
↓ 6 callersFunctiondoGet
(url)
test/internals/reply.test.js:23
↓ 6 callersFunctiongetGenReqId
(contextServer, req)
lib/req-id-gen-factory.js:26
↓ 6 callersFunctiononErrorHook
(reply, error, cb)
lib/reply.js:938
↓ 6 callersFunctiononSendHook
(reply, payload)
lib/reply.js:551
↓ 6 callersMethodrequestCompleted
* Logs the outcome of a completed request. * Uses `error` level when an error is present, `info` otherwise. * * @param {Error | null} error
lib/log-controller.js:62
↓ 6 callersFunctionrunTests
(t, fastifyServer)
test/decorator.test.js:120
↓ 6 callersFunctionsendTrailer
(payload, res, reply)
lib/reply.js:876
↓ 6 callersFunctiontestExecutionHook
(hook)
test/route-hooks.test.js:17
↓ 5 callersFunctionaddEcho
(fastify, method)
test/http-methods/custom-http-methods.test.js:7
↓ 5 callersFunctioncallback
(err)
test/listen.5.test.js:26
↓ 5 callersMethoddefaultErrorLog
* Logs an error handled by the default error handler. * Uses `error` for 5xx status codes, `info` for 4xx. * * @param {Error} error T
lib/log-controller.js:81
↓ 5 callersMethodgetHeaders
()
types/reply.d.ts:57
next →1–100 of 658, ranked by callers