pub enum DpopBody<'a> {
Query,
Form(&'a [(&'a str, &'a str)]),
Json(Vec<u8>),
}Expand description
What this request carries, and therefore which method it uses.
The method is DERIVED rather than passed alongside the body. A DPoP proof
binds htm to the HTTP method, so a mismatch between the two produces a
proof the server rejects — and keeping them in one value makes that
mismatch unrepresentable.
Variants§
Query
A GET; any parameters are already in the URL.
Form(&'a [(&'a str, &'a str)])
application/x-www-form-urlencoded — the OAuth endpoints.
Json(Vec<u8>)
application/json — the XRPC write endpoints.
Auto Trait Implementations§
impl<'a> Freeze for DpopBody<'a>
impl<'a> RefUnwindSafe for DpopBody<'a>
impl<'a> Send for DpopBody<'a>
impl<'a> Sync for DpopBody<'a>
impl<'a> Unpin for DpopBody<'a>
impl<'a> UnsafeUnpin for DpopBody<'a>
impl<'a> UnwindSafe for DpopBody<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more