Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
theduke committed May 31, 2017
1 parent 9a2f3b2 commit 7cc656b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ impl Request {
&self.url
}

/// Get a mutable reference to the url.
pub fn url_mut(&mut self) -> &mut Url {
&mut self.url
}
Expand All @@ -480,6 +481,7 @@ impl Request {
self.body.as_ref()
}

/// Get a mutable reference to the body.
pub fn body_mut(&mut self) -> &mut Option<Body> {
&mut self.body
}
Expand Down

0 comments on commit 7cc656b

Please sign in to comment.