Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.// This is an example of a server that responds with an empty bodyimport { serve } from "../server.ts";
const addr = "";console.log(`Simple server listening on ${addr}`);for await (const req of serve(addr)) { req.respond({});}