Closed tromey closed 6 years ago
Will rebase.
This all looks fine to me as a starting point. I do think we'll want some sort of nicer conversion from Handler
method return types to Response
, but I don't have any qualms with you landing this and someone improving that later.
I'm not really loving the name SimpleError
. Maybe RspError
?
I plan to land this a bit later and then write the follow-ups.
It's pretty typical to just name error types Error
for a specific crate. That'd only be an issue if we wanted to do something like import failure::Error
, but even if we wind up using failure
we can always fully-qualify that type.
Also perhaps Handler methods should default to Empty
.
This series proposes a way for handlers to work, and also adds a few minor cleanups.