pub struct Reply {
pub status: u16,
pub headers: HashMap<String, String>,
pub body: Box<dyn BodyStream>,
}Expand description
The outgoing HTTP response.
Uses a Box<dyn BodyStream> to allow for flexible, memory-efficient body types.
Fields§
§status: u16§headers: HashMap<String, String>§body: Box<dyn BodyStream>Implementations§
Auto Trait Implementations§
impl Freeze for Reply
impl !RefUnwindSafe for Reply
impl Send for Reply
impl !Sync for Reply
impl Unpin for Reply
impl !UnwindSafe for Reply
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