diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-08-19 14:36:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 14:36:01 +0200 |
commit | 5beec3f106b0890cc76150d0e3b3661c576d4c3b (patch) | |
tree | 9692e24bdb5a7e1d1c883b91961cdacff3e6708c /ext/flash/lib.rs | |
parent | 1848c7e361f1a3a33487b60ab6fcb61ed1f62273 (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 'ext/flash/lib.rs')
-rw-r--r-- | ext/flash/lib.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ext/flash/lib.rs b/ext/flash/lib.rs index 8f3cb341a..abd8502d0 100644 --- a/ext/flash/lib.rs +++ b/ext/flash/lib.rs @@ -935,7 +935,6 @@ pub struct ListenOpts { key: Option<String>, hostname: String, port: u16, - use_tls: bool, } fn run_server( @@ -1239,11 +1238,7 @@ fn op_flash_serve<P>( where P: FlashPermissions + 'static, { - if opts.use_tls { - check_unstable(state, "Deno.serveTls"); - } else { - check_unstable(state, "Deno.serve"); - } + check_unstable(state, "Deno.serve"); state .borrow_mut::<P>() .check_net(&(&opts.hostname, Some(opts.port)))?; |