summaryrefslogtreecommitdiff
path: root/cli/bench/http/deno_reactdom_ssr_flash.jsx
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-08-19 14:36:01 +0200
committerGitHub <noreply@github.com>2022-08-19 14:36:01 +0200
commit5beec3f106b0890cc76150d0e3b3661c576d4c3b (patch)
tree9692e24bdb5a7e1d1c883b91961cdacff3e6708c /cli/bench/http/deno_reactdom_ssr_flash.jsx
parent1848c7e361f1a3a33487b60ab6fcb61ed1f62273 (diff)
feat(unstable): change Deno.serve() API (#15498)
- Merge "Deno.serve()" and "Deno.serveTls()" API - Remove first argument and use "fetch" field options instead - Update type declarations - Add more documentation
Diffstat (limited to 'cli/bench/http/deno_reactdom_ssr_flash.jsx')
-rw-r--r--cli/bench/http/deno_reactdom_ssr_flash.jsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/bench/http/deno_reactdom_ssr_flash.jsx b/cli/bench/http/deno_reactdom_ssr_flash.jsx
index 571545b27..0d749c634 100644
--- a/cli/bench/http/deno_reactdom_ssr_flash.jsx
+++ b/cli/bench/http/deno_reactdom_ssr_flash.jsx
@@ -19,8 +19,11 @@ const headers = {
};
serve(
- async () => {
- return new Response(await renderToReadableStream(<App />), headers);
+ {
+ fetch: async () => {
+ return new Response(await renderToReadableStream(<App />), headers);
+ },
+ hostname,
+ port,
},
- { hostname, port },
);