@samveys/hono

Hono membawa transport lewat @hono/node-server; kernel memegang setiap request

Versi
1.0.35 Nov 2026
Pasang
pnpm add @samveys/hono
Dokumentasi
README paket ini

Daftar ini dibaca dari versi 1.0.2; jalankan pnpm sync untuk memperbaruinya.

Import
import { hono } from '@samveys/hono'

Fungsi (1)

hono Fungsi

HTTP driver on Hono served by `@hono/node-server`. Each request is converted to a Fetch `Request` by the adaptor and handed to `kernel.fetch`; the returned `Response` streams back unchanged.

function hono(options?: HonoDriverOptions): HttpDriver<Hono>;

Diekspor dari packages/hono/src/driver.ts

Interface (1)

HonoDriverOptions Interface

Tidak ada komentar dokumentasi.

interface HonoDriverOptions {
    /**
     * Runs on the Hono app before the catch-all route is added (register middleware such as CORS or logging).
     * Every request still ends in the Samveys kernel: routing, bodies, limits and errors are not Hono's.
     */
    readonly configure?: (app: Hono) => void;

Diekspor dari packages/hono/src/driver.ts