summaryrefslogtreecommitdiff
path: root/runtime/web_worker.rs
diff options
context:
space:
mode:
authorYusuke Tanaka <yusuktan@maguro.dev>2024-11-19 10:46:24 +0900
committerGitHub <noreply@github.com>2024-11-18 17:46:24 -0800
commit9f26ca450936da66e57dad2206d0d11363e7b35c (patch)
tree302169d6879de7aef90fb3657fd38fac3de355c0 /runtime/web_worker.rs
parentdf1d36324ffd4f687c406e412f9255bf7a9d8a61 (diff)
feat(ext/http): Make http server parameters configurable (#26785)
This commit makes http server parameters configurable on the extension initialization via two callbacks users can provide. The main motivation behind this change is to allow `deno_http` users to tune the HTTP/2 server to suit their needs, although Deno CLI users will not benefit from it as no JavaScript interface is exposed to set these parameters currently. It is up to users whether to provide hook functions. If not provided, the default configuration from hyper crate will be used.
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r--runtime/web_worker.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index 8e0c870d1..a282d11b9 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -497,7 +497,9 @@ impl WebWorker {
),
deno_cron::deno_cron::init_ops_and_esm(LocalCronHandler::new()),
deno_napi::deno_napi::init_ops_and_esm::<PermissionsContainer>(),
- deno_http::deno_http::init_ops_and_esm::<DefaultHttpPropertyExtractor>(),
+ deno_http::deno_http::init_ops_and_esm::<DefaultHttpPropertyExtractor>(
+ deno_http::Options::default(),
+ ),
deno_io::deno_io::init_ops_and_esm(Some(options.stdio)),
deno_fs::deno_fs::init_ops_and_esm::<PermissionsContainer>(
services.fs.clone(),