[−][src]Struct lieweb::middleware::DefaultHeaders
Implementations
impl DefaultHeaders
[src]
pub fn new() -> DefaultHeaders
[src]
pub fn header<K, V>(&mut self, name: K, value: V) where
HeaderName: TryFrom<K>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
HeaderValue: TryFrom<V>,
<HeaderValue as TryFrom<V>>::Error: Into<Error>,
[src]
HeaderName: TryFrom<K>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
HeaderValue: TryFrom<V>,
<HeaderValue as TryFrom<V>>::Error: Into<Error>,
Trait Implementations
impl Clone for DefaultHeaders
[src]
fn clone(&self) -> DefaultHeaders
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DefaultHeaders
[src]
impl Default for DefaultHeaders
[src]
fn default() -> DefaultHeaders
[src]
impl Middleware for DefaultHeaders
[src]
Auto Trait Implementations
impl RefUnwindSafe for DefaultHeaders
impl Send for DefaultHeaders
impl Sync for DefaultHeaders
impl Unpin for DefaultHeaders
impl UnwindSafe for DefaultHeaders
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F, Fut> Middleware for F where
F: Fn(Request, Next) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Response> + Send + 'static,
[src]
F: Fn(Request, Next) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Response> + Send + 'static,
fn handle<'a, 'async_trait>(
&'a Self,
Request,
Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + 'async_trait + Send>> where
'a: 'async_trait,
F: 'async_trait,
[src]
&'a Self,
Request,
Next<'a>
) -> Pin<Box<dyn Future<Output = Response> + 'async_trait + Send>> where
'a: 'async_trait,
F: 'async_trait,
fn name(&self) -> &str
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,