[][src]Struct oxide_auth_iron::OAuthRequest

pub struct OAuthRequest<'a, 'b, 'c: 'b>(_);

Request type that can be derived from an iron::Request.

For now this is a shim around an &mut iron::Request, but in the future the implementation could change.

Implementations

impl<'a, 'b, 'c: 'b> OAuthRequest<'a, 'b, 'c>[src]

pub fn from_request(request: &'a mut Request<'b, 'c>) -> Self[src]

Coerce an iron::Request into an OAuthRequest.

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

Fetch the URL accessed for this request

pub fn query_string(&self) -> &str[src]

Fetch the query string from the request, returning an empty string if none was present.

pub fn is_form_url_encoded(&self) -> bool[src]

Returns whether the request was sent with the correct ContentType header.

pub fn authorization_header(&self) -> Option<Cow<'_, str>>[src]

Fetch authorization header

Trait Implementations

impl<'a, 'b, 'c: 'b> Debug for OAuthRequest<'a, 'b, 'c>[src]

impl<'a, 'b, 'c: 'b> From<&'a mut Request<'b, 'c>> for OAuthRequest<'a, 'b, 'c>[src]

impl<'a, 'b, 'c: 'b> Into<&'a mut Request<'b, 'c>> for OAuthRequest<'a, 'b, 'c>[src]

impl<'a, 'b, 'c: 'b> WebRequest for OAuthRequest<'a, 'b, 'c>[src]

Requests are handed as mutable reference to the underlying object.

type Response = OAuthResponse

The corresponding type of Responses returned from this module.

type Error = Error

The error generated from access of malformed or invalid requests.

Auto Trait Implementations

impl<'a, 'b, 'c> !RefUnwindSafe for OAuthRequest<'a, 'b, 'c>

impl<'a, 'b, 'c> !Send for OAuthRequest<'a, 'b, 'c>

impl<'a, 'b, 'c> !Sync for OAuthRequest<'a, 'b, 'c>

impl<'a, 'b, 'c> Unpin for OAuthRequest<'a, 'b, 'c> where
    'b: 'a,
    'c: 'a, 

impl<'a, 'b, 'c> !UnwindSafe for OAuthRequest<'a, 'b, 'c>

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> Same<T> for T

type Output = T

Should always be Self

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