Struct finchers::test::TestCase
[−]
[src]
pub struct TestCase { /* fields omitted */ }
A test case for run_test()
Methods
impl TestCase
[src]
fn new(method: Method, uri: &str) -> Self
[src]
Construct a TestCase
from given HTTP method and URI
fn get(uri: &str) -> Self
[src]
Equivalent to TestCase::new(Method::Get, uri)
fn post(uri: &str) -> Self
[src]
Equivalent to TestCase::new(Method::Post, uri)
fn put(uri: &str) -> Self
[src]
Equivalent to TestCase::new(Method::Put, uri)
fn delete(uri: &str) -> Self
[src]
Equivalent to TestCase::new(Method::Delete, uri)
fn patch(uri: &str) -> Self
[src]
Equivalent to TestCase::new(Method::Patch, uri)
fn with_header<H: Header>(self, header: H) -> Self
[src]
Set the HTTP header of this test case
fn with_body<B: Into<Body>>(self, body: B) -> Self
[src]
Set the request body of this test case