From 72329a7145236434bd5acfba60957f48fd024944 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sat, 2 Apr 2016 01:51:22 -0700 Subject: [PATCH] Adding/removing TODOs. --- lib/src/response/responder.rs | 4 ++++ lib/src/router/route.rs | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) 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,