[][src]Trait izanami::test::ResponseExt

pub trait ResponseExt {
    fn header<H>(&self, name: H) -> Result<&HeaderValue>
    where
        H: AsHeaderName + Display
; }

A set of extension methods of Response used within test cases.

Required methods

fn header<H>(&self, name: H) -> Result<&HeaderValue> where
    H: AsHeaderName + Display

Gets a reference to the header field with the specified name.

If the header field does not exist, this method will return an Err instead of None.

Loading content...

Implementations on Foreign Types

impl<T> ResponseExt for Response<T>
[src]

Loading content...

Implementors

Loading content...