Trait gabira::Expect [−][src]
pub trait Expect<'a> { fn expect_status(self, status: u16) -> GabiraExpectBuilder<'a>; fn expect_body(self, body: &'a Body) -> GabiraExpectBuilder<'a>; fn expect_json<T: Serialize>(self, json: &'a T) -> GabiraExpectBuilder<'a>; fn expect_form<T: Serialize>(self, form: &'a T) -> GabiraExpectBuilder<'a>; fn expect_cookie(
self,
name: &'a str,
value: &'a str
) -> GabiraExpectBuilder<'a>; fn expect_header(
self,
field: &'a str,
value: &'a str
) -> GabiraExpectBuilder<'a>; fn expect<F>(self, f: F) -> GabiraExpectBuilder<'a>
where
F: FnMut(&ClientResponse) + 'a; }
Required Methods
fn expect_status(self, status: u16) -> GabiraExpectBuilder<'a>
fn expect_body(self, body: &'a Body) -> GabiraExpectBuilder<'a>
fn expect_json<T: Serialize>(self, json: &'a T) -> GabiraExpectBuilder<'a>
fn expect_form<T: Serialize>(self, form: &'a T) -> GabiraExpectBuilder<'a>
fn expect_header(
self,
field: &'a str,
value: &'a str
) -> GabiraExpectBuilder<'a>
self,
field: &'a str,
value: &'a str
) -> GabiraExpectBuilder<'a>
fn expect<F>(self, f: F) -> GabiraExpectBuilder<'a> where
F: FnMut(&ClientResponse) + 'a,
F: FnMut(&ClientResponse) + 'a,
Implementors
impl<'a> Expect<'a> for GabiraExpectBuilder<'a>
impl<'a> Expect<'a> for GabiraRequestBuilder