[−][src]Struct oxide_auth_iron::OAuthRequest
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.
fn query(
&mut self
) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
[src]
&mut self
) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
fn urlbody(
&mut self
) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
[src]
&mut self
) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
fn authheader(&mut self) -> Result<Option<Cow<'_, str>>, Self::Error>
[src]
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,
'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]
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> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
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<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,