Function request

Source
pub async fn request<T: Context<Response = Response> + Send>(
    app: &App<Request, T>,
    method: &str,
    route: &str,
    headers: &[(&str, &str)],
    body: &str,
) -> TestResponse