Struct httpbin::HttpBin
[−]
[src]
pub struct HttpBin { /* fields omitted */ }
A factory for creating http dispatchers
Methods
impl HttpBin
[src]
fn new() -> HttpBin
[src]
Create a HttpBin instance at root of the domain
fn new_at(path: &Path) -> HttpBin
[src]
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.
fn instantiate(&self, addr: SocketAddr) -> HttpBinDispatcher
[src]
Create an instance of HttpBinDispatcher