Adding/removing TODOs.

This commit is contained in:
Sergio Benitez 2016-04-02 01:51:22 -07:00
parent 416a18abf8
commit 72329a7145
2 changed files with 4 additions and 1 deletions

View File

@ -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>);
}

View File

@ -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,