brian14708 opened PR #11323 from brian14708:feature/wasi-http-default-send-request to bytecodealliance:main:
This PR adds a
default-send-requestfeature flag to thewasmtime-wasi-httpcrate that allows disabling the default HTTP request handler implementation and its associated TLS dependencies.
brian14708 requested wasmtime-wasi-reviewers for a review on PR #11323.
brian14708 updated PR #11323.
brian14708 updated PR #11323.
dicej submitted PR review:
Looks great, thanks; just one suggestion inline.
dicej created PR review comment:
Would you mind prefixing each of these with
dep:(e.g."dep:tokio-rustls"per https://doc.rust-lang.org/cargo/reference/features.html#optional-dependencies to avoid possible ambiguity?
alexcrichton submitted PR review:
(if you don't mind me doing some review too)
Thanks for this! In addition to the comments below can you add a check on CI that the crate builds without default features? For example somewhere around here
alexcrichton created PR review comment:
FWIW we generally do not test all possible combinations of features, so I think it's reasonable to leave this out and have it be a compile error if the feature is disabled and tested. My thinking is along the lines of my above comment where I'd prefer to avoid reachable always-return-error functions if possible
alexcrichton created PR review comment:
Personally I don't feel this is the best way to model the behavior here. Could the crate feature be used to control whether this is is a provided function or not? For example without the crate feature this would be an empty function meaning that callers would be required to implement it. With the crate feature though it would be a provided function meaning it has a default implementation.
brian14708 requested alexcrichton for a review on PR #11323.
brian14708 requested wasmtime-default-reviewers for a review on PR #11323.
brian14708 updated PR #11323.
brian14708 updated PR #11323.
brian14708 updated PR #11323.
brian14708 submitted PR review.
brian14708 created PR review comment:
Thanks, missed a
no-default-featuresinwasmtime-cliotherwise.
alexcrichton merged PR #11323.
Last updated: Dec 06 2025 at 07:03 UTC