justinas/alice

Another approach

Closed this issue · 1 comments

How about using higher order functions by having Chain implement http.Handler?
https://gist.github.com/emrekzd/3d610cfccbdc795eb412

I'm afraid this is not viable. Using this approach, handlers don't get a reference to the next handler in chain. This is one of the problems Alice is supposed to solve, as outlined in the introductory blog post.