Skip to main content
Module

x/abc/vendor/https/deno.land/std/http/server.ts>serve

A better Deno framework to create web application.
Latest
function serve
import { serve } from "https://deno.land/x/abc@v1.3.3/vendor/https/deno.land/std/http/server.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