iron_test::request

Function request

Source
pub fn request<H: Handler>(
    method: Method,
    path: &str,
    body: &str,
    headers: Headers,
    handler: &H,
) -> IronResult<Response>
Expand description

Constructs an Iron::Request from the given parts and passes it to the handle method on the given Handler.