feat(client): add patch method to Client builder interface

This commit is contained in:
softprops
2015-10-01 22:30:52 -04:00
parent 79a99eec8c
commit 03827c3156

View File

@@ -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)