pub struct CachedRequestMethod(pub Method);Expand description
Request method of the request that produced a response, attached to the
response’s extensions by the streaming orchestrator before it calls
StreamingCacheManager::put. Managers use it to special-case HEAD:
a HEAD response’s Content-Length describes the entity, not the
(empty) stored body (RFC 9110 §8.6), so size/completeness checks that
compare received bytes against Content-Length must be skipped.
Tuple Fields§
§0: MethodTrait Implementations§
Source§impl Clone for CachedRequestMethod
impl Clone for CachedRequestMethod
Source§fn clone(&self) -> CachedRequestMethod
fn clone(&self) -> CachedRequestMethod
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 moreAuto Trait Implementations§
impl Freeze for CachedRequestMethod
impl RefUnwindSafe for CachedRequestMethod
impl Send for CachedRequestMethod
impl Sync for CachedRequestMethod
impl Unpin for CachedRequestMethod
impl UnsafeUnpin for CachedRequestMethod
impl UnwindSafe for CachedRequestMethod
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