pub struct DpopRequest<'a> {
pub endpoint: Endpoint,
pub url: &'a str,
pub key: &'a SigningKey,
pub access_token: Option<&'a str>,
pub body: DpopBody<'a>,
pub retry: Retry,
}Expand description
One DPoP-authenticated request.
Grouped rather than passed positionally so a call site reads as a
description of the request — Retry::Forbidden for a request whose body cannot be replayed is
the kind of thing that should be visible at the call, not buried in an
argument list.
Fields§
§endpoint: Endpoint§url: &'a str§key: &'a SigningKeyThe session’s DPoP key — the same one used from PAR onward.
access_token: Option<&'a str>Binds the proof via ath and is sent as Authorization: DPoP ….
None for the authorization-server endpoints.
body: DpopBody<'a>§retry: RetryAuto Trait Implementations§
impl<'a> Freeze for DpopRequest<'a>
impl<'a> RefUnwindSafe for DpopRequest<'a>
impl<'a> Send for DpopRequest<'a>
impl<'a> Sync for DpopRequest<'a>
impl<'a> Unpin for DpopRequest<'a>
impl<'a> UnsafeUnpin for DpopRequest<'a>
impl<'a> UnwindSafe for DpopRequest<'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