Skip to content

Commit

Permalink
feat(client): add patch method to Client builder interface
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Oct 2, 2015
1 parent 79a99ee commit 03827c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ impl Client {
self.request(Method::Head, url)
}

/// Build a Patch request.
pub fn patch<U: IntoUrl>(&self, url: U) -> RequestBuilder<U> {
self.request(Method::Patch, url)
}

/// Build a Post request.
pub fn post<U: IntoUrl>(&self, url: U) -> RequestBuilder<U> {
self.request(Method::Post, url)
Expand Down

0 comments on commit 03827c3

Please sign in to comment.