Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/http/server.ts>BunServer

A JavaScript extension package for building strong and modern applications.
Latest
interface BunServer
import { type BunServer } from "https://deno.land/x/ayonli_jsext@v0.9.72/http/server.ts";

Properties

readonly
development: boolean
readonly
hostname: string
readonly
id: string
readonly
pendingRequests: number
readonly
pendingWebSockets: number
readonly
port: number
readonly
url: URL

Methods

fetch(request: Request | string): Response | Promise<Response>
ref(): void
requestIP(request: Request): { family: "IPv4" | "IPv6"; address: string; port: number; } | null
stop(closeActiveConnections?: boolean): Promise<void>
unref(): void
upgrade<T = undefined>(request: Request, options?: { data?: T; headers?: HeadersInit; }): boolean