* `onRequest` is the first hook to be executed in the request lifecycle. There was no previous hook, the next hook will be `preParsing`. * Notice: in the `onRequest` hook, request.body will always be null, because the body parsing happens before the `preHandler` hook.
(
name: 'onRequest',
hook: Fn extends unknown ? Fn extends AsyncFunction ? onRequestAsyncHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger> : onRequestHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, TypeProvider, Logger> : Fn,
)
| 225 | * Notice: in the `onRequest` hook, request.body will always be null, because the body parsing happens before the `preHandler` hook. |
| 226 | */ |
| 227 | addHook< |
| 228 | RouteGeneric extends RouteGenericInterface = RouteGenericInterface, |
| 229 | ContextConfig = ContextConfigDefault, |
| 230 | SchemaCompiler extends FastifySchema = FastifySchema, |
no outgoing calls