@samveys/fastify
Fastify memegang siklus hidup server, kernel Samveys memegang setiap request
Daftar ini dibaca dari versi 1.0.2; jalankan pnpm sync untuk memperbaruinya.
import { fastify } from '@samveys/fastify'
Fungsi (1)
fastify
Fungsi
HTTP driver on Fastify. Fastify supplies the server lifecycle (`serverFactory`, `listen`, `close`); every request is handed untouched to `kernel.handleNode`, so Fastify never parses a body.
function fastify(options?: FastifyDriverOptions): HttpDriver<FastifyInstance>;
Diekspor dari packages/fastify/src/driver.ts
Interface (1)
FastifyDriverOptions
Interface
Tidak ada komentar dokumentasi.
interface FastifyDriverOptions {
/**
* Runs on the Fastify instance before it starts listening (register plugins, hooks, decorators).
* Requests never reach Fastify's router: the Samveys kernel owns routing, bodies, limits and errors.
*/
readonly configure?: (instance: FastifyInstance) => void | Promise<void>;
Diekspor dari packages/fastify/src/driver.ts