diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-05-16 22:57:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-16 16:57:55 +0200 |
commit | ac8ea823f5867e35715051176b6a2ff145a3afd1 (patch) | |
tree | 2e6779ca0f6f6592fa1b7cad115ee5f967d44efc /cli/dts/lib.deno.unstable.d.ts | |
parent | 9f9a50a3e829641856a1e518c6bdc94d033ad471 (diff) |
docs(cli/dts): fix http server example (#10651)
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 5b1d935ce..83facd27d 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -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) { |