Skip to content

wasm: construct Response from http::Response - #3061

Open
leo1987820 wants to merge 1 commit into
seanmonstar:masterfrom
leo1987820:codex/wasm-response-from-http-2072
Open

wasm: construct Response from http::Response#3061
leo1987820 wants to merge 1 commit into
seanmonstar:masterfrom
leo1987820:codex/wasm-response-from-http-2072

Conversation

@leo1987820

Copy link
Copy Markdown

Summary

  • add a wasm From<http::Response<T>> for Response conversion for byte-backed bodies
  • preserve status, headers, and ResponseBuilderExt::url() metadata when rebuilding a wasm response
  • add a wasm-bindgen test covering status/header/url/body preservation

Refs #2072.

Verification

  • git diff --check

I could not run the wasm Rust checks locally because this environment did not have cargo/rustc available. I attempted a temporary minimal Rust toolchain install under the workspace, but the rustup download did not complete successfully, so this needs upstream CI validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant