Struct attohttpc::RequestInspector[][src]

pub struct RequestInspector<'a, B>(_);

Allows to inspect the properties of a request before preparing it.

Implementations

impl<B> RequestInspector<'_, B>[src]

pub fn url(&self) -> &Url[src]

Access the current URL

pub fn method(&self) -> &Method[src]

Access the current method

pub fn body(&mut self) -> &mut B[src]

Access the current body

pub fn headers(&self) -> &HeaderMap[src]

Acess the current headers

Trait Implementations

impl<'a, B: Debug> Debug for RequestInspector<'a, B>[src]

Auto Trait Implementations

impl<'a, B> RefUnwindSafe for RequestInspector<'a, B> where
    B: RefUnwindSafe

impl<'a, B> Send for RequestInspector<'a, B> where
    B: Send

impl<'a, B> Sync for RequestInspector<'a, B> where
    B: Sync

impl<'a, B> Unpin for RequestInspector<'a, B>

impl<'a, B> !UnwindSafe for RequestInspector<'a, B>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,