Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/texa/src/deps.ts>serve

A Deno web framework inspired by Oak and Express. Built-in support for WebSockets, middleware and routing.
Latest
function serve
import { serve } from "https://deno.land/x/texa@0.8.1/src/deps.ts";

Create a HTTP server

import { serve } from "https://deno.land/std/http/server.ts";
const body = "Hello World\n";
const server = serve({ port: 8000 });
for await (const req of server) {
  req.respond({ body });
}

Parameters

addr: string | HTTPOptions