mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
docs(cli/dts): fix http server example (#10651)
This commit is contained in:
parent
9f9a50a3e8
commit
ac8ea823f5
1 changed files with 1 additions and 0 deletions
1
cli/dts/lib.deno.unstable.d.ts
vendored
1
cli/dts/lib.deno.unstable.d.ts
vendored
|
@ -1161,6 +1161,7 @@ declare namespace Deno {
|
|||
* Services HTTP requests given a TCP or TLS socket.
|
||||
*
|
||||
* ```ts
|
||||
* const conn = await Deno.connect({ port: 80, hostname: "127.0.0.1" });
|
||||
* const httpConn = Deno.serveHttp(conn);
|
||||
* const e = await httpConn.nextRequest();
|
||||
* if (e) {
|
||||
|
|
Loading…
Reference in a new issue