deno.land / x / feathers@v5.0.0-pre.29 / server / http.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { serve } from 'https://deno.land/std/http/server.ts';
// deno run --allow-net --allow-read standard-library.ts// Docs: https://deno.land/std/httpconst s = serve({ port: 8000 })
console.log(`🦕 Deno server running at http://localhost:8000/ 🦕`)
for await (const req of s) { req.respond({ body: 'Hello from your first Deno server' })}
export function rest () { return (app: any) => { app.listen = async function (port: number) { const s = serve({ port: 8000 });
console.log(`🦕 Deno server running at http://localhost:8000/ 🦕`) for await (const req of s) { req.respond({ body: 'Hello from your first Deno server' }) } } }}
feathers

Version Info

Tagged at
a year ago

External Dependencies

No external dependencies 🎉