mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00:00
docs: use Deno.serve
in README (#19805)
This commit is contained in:
parent
2f4b73410a
commit
c5ddb5f205
@ -78,9 +78,7 @@ deno run https://deno.land/std/examples/welcome.ts
|
||||
Or [setup a simple HTTP server](https://examples.deno.land/http-server):
|
||||
|
||||
```ts
|
||||
import { serve } from "https://deno.land/std@0.182.0/http/server.ts";
|
||||
|
||||
serve((_req) => new Response("Hello, World!"));
|
||||
Deno.serve((_req) => new Response("Hello, World!"));
|
||||
```
|
||||
|
||||
[More examples](https://examples.deno.land/).
|
||||
|
Loading…
Reference in New Issue
Block a user