pub struct Request {
pub sent: Response,
/* private fields */
}Expand description
Data associated with a successful request.
Fields§
§sent: ResponseData that was sent to the client.
Implementations§
Source§impl Request
impl Request
Sourcepub fn client_cache_reused(&self) -> bool
pub fn client_cache_reused(&self) -> bool
Returns a boolean indicating whether the client relied on their own cached version of the file;
true means that the client provided an ETag that matched the current version of the file,
and expectedly received a 304 “Not Modified” response without the contents of the file.
Trait Implementations§
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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