diff --git a/lib/src/response/responder.rs b/lib/src/response/responder.rs index f5666fa3..bcefeea0 100644 --- a/lib/src/response/responder.rs +++ b/lib/src/response/responder.rs @@ -3,6 +3,10 @@ use std::io::{Read, Write}; use std::fs::File; use std::fmt; +// TODO: Have this return something saying whether every was okay. Need +// something like to be able to forward requests on when things don't work out. +// In particular, we want to try the next ranked route when when parsing +// parameters doesn't work out. pub trait Responder { fn respond<'a>(&mut self, mut res: HyperResponse<'a, HyperFresh>); } diff --git a/lib/src/router/route.rs b/lib/src/router/route.rs index 5423219d..07adfcc2 100644 --- a/lib/src/router/route.rs +++ b/lib/src/router/route.rs @@ -5,7 +5,6 @@ use method::Method; use super::{Collider, URI, URIBuf}; // :D use handler::Handler; -// TODO: Add ranking to routes. Give static routes higher rank by default. // FIXME: Take in the handler! Or maybe keep that in `Router`? pub struct Route { pub method: Method,