pub struct Builder<B> { /* private fields */ }Expand description
Entrypoint to build a bHTTP message.
Implementations§
Source§impl<B: BufMut> Builder<B>
impl<B: BufMut> Builder<B>
Sourcepub fn push_ctrl(
self,
method: &[u8],
scheme: &[u8],
authority: &[u8],
path: &[u8],
) -> Result<HeaderBuilder<B>, Error>
pub fn push_ctrl( self, method: &[u8], scheme: &[u8], authority: &[u8], path: &[u8], ) -> Result<HeaderBuilder<B>, Error>
Push request control data.
Sourcepub fn push_status(self, status: usize) -> Result<InfoBuilder<B>, Error>
pub fn push_status(self, status: usize) -> Result<InfoBuilder<B>, Error>
Push informational/final response contral data.
Auto Trait Implementations§
impl<B> Freeze for Builder<B>where
B: Freeze,
impl<B> RefUnwindSafe for Builder<B>where
B: RefUnwindSafe,
impl<B> Send for Builder<B>where
B: Send,
impl<B> Sync for Builder<B>where
B: Sync,
impl<B> Unpin for Builder<B>where
B: Unpin,
impl<B> UnsafeUnpin for Builder<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for Builder<B>where
B: 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