Function aws_smithy_eventstream::test_util::validate_body
source ยท pub fn validate_body(
expected_body: &[u8],
actual_body: &[u8],
full_stream: bool,
) -> Result<(), Box<dyn StdError>>
Available on crate feature
test-util
only.Expand description
Validate that the bodies match, which includes headers and messages
When full_stream
is true, it also verifies the length of frames