Skip to content

Commit c140781

Browse files
committed
docstring for await_next_request_body
1 parent ccf9db2 commit c140781

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ pub fn get_capability(our: &Address, params: &str) -> Option<Capability> {
217217
.cloned()
218218
}
219219

220+
/// if the next message is a request, return its body, otherwise, return an error
220221
pub fn await_next_request_body() -> anyhow::Result<Vec<u8>> {
221222
let Ok(Message::Request { body, .. }) = await_message() else {
222223
return Err(anyhow::anyhow!("failed to get request body, bailing out"));

0 commit comments

Comments
 (0)