Add shortcuts for PATCH (again)`
This commit is contained in:
committed by
Martin Algesten
parent
94a8040706
commit
69ad3aabb0
@@ -154,6 +154,11 @@ impl Agent {
|
||||
self.request("HEAD", path)
|
||||
}
|
||||
|
||||
/// Make a PATCH request from this agent.
|
||||
pub fn patch(&self, path: &str) -> Request {
|
||||
self.request("PATCH", path)
|
||||
}
|
||||
|
||||
/// Make a POST request from this agent.
|
||||
pub fn post(&self, path: &str) -> Request {
|
||||
self.request("POST", path)
|
||||
|
||||
@@ -401,6 +401,11 @@ pub fn head(path: &str) -> Request {
|
||||
request("HEAD", path)
|
||||
}
|
||||
|
||||
/// Make a PATCH request.
|
||||
pub fn patch(path: &str) -> Request {
|
||||
request("PATCH", path)
|
||||
}
|
||||
|
||||
/// Make a POST request.
|
||||
pub fn post(path: &str) -> Request {
|
||||
request("POST", path)
|
||||
|
||||
Reference in New Issue
Block a user