Skip to content

Commit

Permalink
Merge pull request #659 from softprops/patch_builder
Browse files Browse the repository at this point in the history
feat(client): add patch method to Client builder interface
  • Loading branch information
seanmonstar committed Oct 2, 2015
2 parents 79a99ee + 03827c3 commit 388ddf6
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 388ddf6

Please sign in to comment.