Class BunWayApp

BunWayApp extends the Router with an Express-style .listen(). Usage: const app = bunway(); app.get("/", (ctx) => ctx.res.text("OK")); app.listen(7070);

Hierarchy (view full)

Constructors

Methods

  • Start the HTTP server.

    • listen(port)
    • listen({ port, hostname })
    • listen(port, onListen)
    • listen(options, onListen)

    Parameters

    • Optional portOrOptions: number | ListenOptions
    • Optional onListen: (() => void)
        • (): void
        • Returns void

    Returns Server