pub struct HttpPrinter<W: Write> { /* private fields */ }Implementations§
Source§impl<W: Write> HttpPrinter<W>
impl<W: Write> HttpPrinter<W>
pub fn new(stream: W) -> Self
pub fn flush(&mut self) -> Result<()>
pub fn write_response0( &mut self, status: &Status<'_>, headers: &Headers<'_>, ) -> Result<()>
pub fn write_response<R: Read>( &mut self, status: &Status<'_>, headers: &Headers<'_>, body: R, ) -> Result<()>
pub fn write_request<R: Read>( &mut self, method: &Method, uri: &str, headers: &Headers<'_>, body: R, ) -> Result<()>
pub fn write_100_continue(&mut self) -> Result<()>
Auto Trait Implementations§
impl<W> Freeze for HttpPrinter<W>where
W: Freeze,
impl<W> RefUnwindSafe for HttpPrinter<W>where
W: RefUnwindSafe,
impl<W> Send for HttpPrinter<W>where
W: Send,
impl<W> Sync for HttpPrinter<W>where
W: Sync,
impl<W> Unpin for HttpPrinter<W>where
W: Unpin,
impl<W> UnwindSafe for HttpPrinter<W>where
W: UnwindSafe,
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