Struct envoy_sdk::host::stream_info::RequestInfo[][src]

pub struct RequestInfo<'a> { /* fields omitted */ }

Provides access to request properties.

Implementations

impl<'a> RequestInfo<'a>[src]

pub fn header<K>(&self, name: K) -> Result<Option<ByteString>> where
    K: AsRef<str>, 
[src]

Returns request header by name.

pub fn id(&self) -> Result<Option<String>>[src]

Returns request ID.

pub fn time(&self) -> Result<Option<SystemTime>>[src]

Returns time of the first byte received.

pub fn duration(&self) -> Result<Option<Duration>>[src]

Returns total duration of the request.

pub fn size(&self) -> Result<Option<u64>>[src]

Returns size of the request body.

pub fn total_size(&self) -> Result<Option<u64>>[src]

Returns total size of the request including the headers.

pub fn protocol(&self) -> Result<Option<String>>[src]

Returns request protocol e.g. “HTTP/2”.

pub fn path(&self) -> Result<Option<String>>[src]

Returns the path portion of the URL.

pub fn url_path(&self) -> Result<Option<String>>[src]

Returns the path portion of the URL without the query string.

pub fn host(&self) -> Result<Option<String>>[src]

Returns the host portion of the URL.

pub fn method(&self) -> Result<Option<String>>[src]

Returns request method.

pub fn scheme(&self) -> Result<Option<String>>[src]

Returns the scheme portion of the URL.

pub fn referer(&self) -> Result<Option<ByteString>>[src]

Returns referer request header.

pub fn user_agent(&self) -> Result<Option<ByteString>>[src]

Returns user agent request header.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for RequestInfo<'a>

impl<'a> !Send for RequestInfo<'a>

impl<'a> !Sync for RequestInfo<'a>

impl<'a> Unpin for RequestInfo<'a>

impl<'a> !UnwindSafe for RequestInfo<'a>

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> 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.