pub fn delete(path: impl Into<String>) -> TestConn
Expand description

Builds a new TestConn with the delete http method and the provided path.

use trillium_testing::prelude::*;

let conn = delete("/some/route").on(&());

assert_eq!(conn.method(), Method::Delete);
assert_eq!(conn.path(), "/some/route");