Restore HEAD and DELETE
Also, remove OPTIONS, TRACE, and PATCH from lib.rs.
This commit is contained in:
committed by
Martin Algesten
parent
aae05c5614
commit
d83de53bcd
15
src/lib.rs
15
src/lib.rs
@@ -182,21 +182,6 @@ pub fn delete(path: &str) -> Request {
|
||||
request("DELETE", path)
|
||||
}
|
||||
|
||||
/// Make a TRACE request.
|
||||
pub fn trace(path: &str) -> Request {
|
||||
request("TRACE", path)
|
||||
}
|
||||
|
||||
/// Make an OPTIONS request.
|
||||
pub fn options(path: &str) -> Request {
|
||||
request("OPTIONS", path)
|
||||
}
|
||||
|
||||
/// Make an PATCH request.
|
||||
pub fn patch(path: &str) -> Request {
|
||||
request("PATCH", path)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user