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 99042af commit 20ae0c7Copy full SHA for 20ae0c7
decompression-plz/src/decode_struct.rs
@@ -45,6 +45,13 @@ where
45
.unwrap_or(false)
46
}
47
48
+ pub fn is_transfer_type_close(&self) -> bool {
49
+ self.message
50
+ .body_headers()
51
+ .map(|b| b.transfer_type == Some(TransferType::Close))
52
+ .unwrap_or(false)
53
+ }
54
+
55
pub fn chunked_to_raw(&mut self) {
56
chunked_to_raw(self.message, self.buf);
57
self.body = self.message.get_body().into_bytes().unwrap();
0 commit comments