Skip to main content
Module

x/composium/mod.ts>listen

Powered by functional composition and the URL Pattern API, composium has become the most flexible routing framework in the world.
Go to Latest
function listen
import { listen } from "https://deno.land/x/composium@v0.0.8/mod.ts";

A curried function which takes a Handler and options. It constructs a server, creates a listener on the given address, accepts incoming connections, upgrades them to TLS and handles requests.

await listen(handler)({ port: 8080 })