[][src]Trait http_tools::response::Extension

pub trait Extension {
    fn filter(&self) -> Option<&Self>;
}

The Extension trait provides additional methods to the Http Response type

Required methods

fn filter(&self) -> Option<&Self>

Creates an Option<&Response> that can be filtered on using the Filter trait. Whenever this filter struct is passed through a filter function it will return Some if the inner Response passed the filter, or None if the inner Response failed the filter.

Loading content...

Implementations on Foreign Types

impl<R> Extension for Response<R>[src]

Loading content...

Implementors

Loading content...