Skip to content

Commit

Permalink
Add bytes_mut and into_bytes for ResponseData (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianhasselknippe authored Aug 30, 2024
1 parent 4e43c5a commit 5ba753b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions s3/src/request/request_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ impl ResponseData {
&self.bytes
}

pub fn bytes_mut(&mut self) -> &mut Bytes {
&mut self.bytes
}

pub fn into_bytes(self) -> Bytes {
self.bytes
}

pub fn status_code(&self) -> u16 {
self.status_code
}
Expand Down

0 comments on commit 5ba753b

Please sign in to comment.