Function trillium_testing::methods::post
source ยท pub fn post(path: impl Into<String>) -> TestConn
Expand description
Builds a new TestConn
with the post http method and the provided path.
use trillium_testing::prelude::*;
let conn = post("/some/route").on(&());
assert_eq!(conn.method(), Method::Post);
assert_eq!(conn.path(), "/some/route");