import { server } from "https://deno.land/x/create_react_app@v0.1.2/deps.ts";
const { serve } = server;
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