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