mirror of https://github.com/rwf2/Rocket.git
Adding/removing TODOs.
This commit is contained in:
parent
416a18abf8
commit
72329a7145
|
@ -3,6 +3,10 @@ use std::io::{Read, Write};
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::fmt;
|
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 {
|
pub trait Responder {
|
||||||
fn respond<'a>(&mut self, mut res: HyperResponse<'a, HyperFresh>);
|
fn respond<'a>(&mut self, mut res: HyperResponse<'a, HyperFresh>);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@ use method::Method;
|
||||||
use super::{Collider, URI, URIBuf}; // :D
|
use super::{Collider, URI, URIBuf}; // :D
|
||||||
use handler::Handler;
|
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`?
|
// FIXME: Take in the handler! Or maybe keep that in `Router`?
|
||||||
pub struct Route {
|
pub struct Route {
|
||||||
pub method: Method,
|
pub method: Method,
|
||||||
|
|
Loading…
Reference in New Issue