mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
docs: use Deno.serve
in README (#19805)
This commit is contained in:
parent
2f4b73410a
commit
c5ddb5f205
1 changed files with 1 additions and 3 deletions
|
@ -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 a new issue