Awkward Method Name
Open
- Dominant language
- Rust
- Stars
- 50
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Having something like `mount.mount` is extremely awkward.
Something like `on` might serve better:
``` rust
fn send_hello(req: &mut Request) -> IronResult {
Ok(Response::with(status::Ok, "Hello!"))
}
fn intercept(req: &mut Request) -> IronResult {
Ok(Response::with(status::Ok, "Blocked!"))
}
fn main() {
let mut mount = Mount::new();
mount.on("/blocked/", intercept).on("/", send_hello);
Iron::new(mount).listen(Ipv4Addr(127, 0, 0, 1), 3000);
}
```
Contributor guide
Assessment
This issue has not been assessed yet.