Add shortcuts for PATCH (again)`

This commit is contained in:
Jochen Kupperschmidt
2021-10-13 02:31:36 +02:00
committed by Martin Algesten
parent 94a8040706
commit 69ad3aabb0
2 changed files with 10 additions and 0 deletions

View File

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