pub struct HttpBin { /* private fields */ }Expand description
A factory for creating http dispatchers
Implementations§
Source§impl HttpBin
impl HttpBin
Sourcepub fn new_at(path: &Path) -> HttpBin
pub fn new_at(path: &Path) -> HttpBin
Create a HttpBin instance at specified path
The path influences both: how path is matched (everything that does not start with prefix returns 404). And all paths rendered in the page.
Sourcepub fn instantiate(&self, addr: SocketAddr) -> HttpBinDispatcher
pub fn instantiate(&self, addr: SocketAddr) -> HttpBinDispatcher
Create an instance of HttpBinDispatcher
Auto Trait Implementations§
impl Freeze for HttpBin
impl RefUnwindSafe for HttpBin
impl Send for HttpBin
impl Sync for HttpBin
impl Unpin for HttpBin
impl UnwindSafe for HttpBin
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