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

x/deno/std/http/server.ts>listenAndServe

A modern runtime for JavaScript and TypeScript.
Go to Latest
function listenAndServe
import { listenAndServe } from "https://deno.land/x/deno@v0.28.0/std/http/server.ts";

Parameters

addr: string
handler: (req: ServerRequest) => void

Returns

Promise<void>