Skip to content

Commit

Permalink
Add into_inner for chaining
Browse files Browse the repository at this point in the history
Signed-off-by: Brian H <[email protected]>
  • Loading branch information
fibonacci1729 committed Oct 26, 2023
1 parent b45feb8 commit db0f5b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdk/rust/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,11 @@ impl ResponseOutparam {
self.set(response);
body.send(buffer).await
}

/// Return the inner, `wit-bindgen`-generated instance
pub fn into_inner(self) -> types::ResponseOutparam {
self.0
}
}

/// Send an outgoing request
Expand Down

0 comments on commit db0f5b3

Please sign in to comment.