Skip to main content
Module

x/servest/benchmark/std_bench.ts

🌾A progressive http server for Deno🌾
Go to Latest
File
// Copyright 2019-2020 Yusuke Sakurai. All rights reserved. MIT license.import { serve } from "https://deno.land/std@v0.32.0/http/server.ts";const body = new TextEncoder().encode("Hello World");const it = serve(":4500");async function main() { for await (const req of it) { req.respond({ status: 200, body, }); }}main();