We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccf9db2 commit c140781Copy full SHA for c140781
src/lib.rs
@@ -217,6 +217,7 @@ pub fn get_capability(our: &Address, params: &str) -> Option<Capability> {
217
.cloned()
218
}
219
220
+/// if the next message is a request, return its body, otherwise, return an error
221
pub fn await_next_request_body() -> anyhow::Result<Vec<u8>> {
222
let Ok(Message::Request { body, .. }) = await_message() else {
223
return Err(anyhow::anyhow!("failed to get request body, bailing out"));
0 commit comments