Starting work on 0.3.
Some tests.
Using protocols instead of arguments to support any request, not just ring requests.
We don't really need an option hash now.
Avoiding shadowing of fn name.
Moving function so that related functions are next to eachother.
No need for then/else branch.
Destructuring superpowers.
Null pointer exception safe.
Making it clear that we return a plain old ring handler fn.
Making the method not allowed response pluggable.
Done!
Getting rid of the negotiator term, and making the API more like classic ring middlewares. In fact, just like classic ring middlewares.
Wrapping handlers in middlewares once, not on every request.
Moving resource compilation to separate function.
No need to do that stuff twice.
One-liner.
Just to make sure.
We can oneline that too tbh.
No need for concat/intermedary list.