Skip to content

Commit 5ba753b

Browse files
Add bytes_mut and into_bytes for ResponseData (#397)
1 parent 4e43c5a commit 5ba753b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

s3/src/request/request_trait.rs

+8
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ impl ResponseData {
8080
&self.bytes
8181
}
8282

83+
pub fn bytes_mut(&mut self) -> &mut Bytes {
84+
&mut self.bytes
85+
}
86+
87+
pub fn into_bytes(self) -> Bytes {
88+
self.bytes
89+
}
90+
8391
pub fn status_code(&self) -> u16 {
8492
self.status_code
8593
}

0 commit comments

Comments
 (0)