Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ic-utils/src/interfaces/http_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ pub struct StreamingCallbackHttpResponse<Token = self::Token> {
pub body: Vec<u8>,
/// The new stream continuation token.
pub token: Option<Token>,
/// chunk witness tree.
pub chunk_tree: Option<Vec<u8>>,
}

/// A token for continuing a callback streaming strategy.
Expand Down Expand Up @@ -298,6 +300,7 @@ mod test {
index: 42.into(),
sha256: None,
}),
chunk_tree: None,
})
.unwrap();

Expand Down Expand Up @@ -349,6 +352,7 @@ mod test {
let bytes: Vec<u8> = Encode!(&StreamingCallbackHttpResponse {
body: b"this is a body".as_ref().into(),
token: Option::<pre_update_legacy::Token>::None,
chunk_tree: None,
})
.unwrap();

Expand Down