pub struct HttpExchange<'a> {
pub response: &'a HttpResponse,
pub request: &'a HttpRequest,
}Expand description
A response together with the request it answers.
Both are needed to sign or verify a response: ;req components are taken
from the request, which is what stops a signed response being lifted onto a
different one.
Fields§
§response: &'a HttpResponseThe response being signed or verified.
request: &'a HttpRequestThe request it answers.
Trait Implementations§
Source§impl<'a> Clone for HttpExchange<'a>
impl<'a> Clone for HttpExchange<'a>
Source§fn clone(&self) -> HttpExchange<'a>
fn clone(&self) -> HttpExchange<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComponentSource for HttpExchange<'_>
impl ComponentSource for HttpExchange<'_>
Source§fn component_value(&self, component: &Component) -> Result<String, HttpSigError>
fn component_value(&self, component: &Component) -> Result<String, HttpSigError>
The derived value of
component for this message. Read moreimpl<'a> Copy for HttpExchange<'a>
Auto Trait Implementations§
impl<'a> Freeze for HttpExchange<'a>
impl<'a> RefUnwindSafe for HttpExchange<'a>
impl<'a> Send for HttpExchange<'a>
impl<'a> Sync for HttpExchange<'a>
impl<'a> Unpin for HttpExchange<'a>
impl<'a> UnsafeUnpin for HttpExchange<'a>
impl<'a> UnwindSafe for HttpExchange<'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