pub struct Trailers { /* private fields */ }Expand description
HTTP trailers sent after a chunked response body.
Per RFC 7230, trailers are headers sent after the final chunk in a chunked transfer encoding. Common uses include content digests, signatures, and final status after streaming.
§Example
use fastapi_http::Trailers;
let trailers = Trailers::new()
.add("Content-MD5", "Q2hlY2tzdW0=")
.add("Server-Timing", "total;dur=123");Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Trailers
impl RefUnwindSafe for Trailers
impl Send for Trailers
impl Sync for Trailers
impl Unpin for Trailers
impl UnwindSafe for Trailers
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).