Skip to main content
Module

std/http/server.ts>listenAndServe

Deno standard library
Go to Latest
function listenAndServe
import { listenAndServe } from "https://deno.land/std@v0.36.0/http/server.ts";

Parameters

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

Returns

Promise<void>