stackmob/scalamachine — pull request #9 by jrwest (2012-09-10 00:19:47+00:00)
Title: Simple Request Rewriting

* this is not a feature that was included in the original webmachine. stack mob has a need for being able to rewrite some legacy routes in a scalamachine application. Although this can usually be done at higher levels of the stack, sometimes its convenient to have something easily testable in the projects existing test harness
* to add rewrites to a dispatch table override the `rewrites` member and supply a `Seq[Rewrite]`. a Rewrite contains a predicate function (ReqRespData => Boolean) and a rewriting function (ReqRespData => ReqRespData). The rewrites are applied in order and only if the predicate returns true for the given data. If multiple rewrites are applied to the same request a subsequent rewrite will see the effects of the previous one (see the updated example in scalamachine-finagle-example)
* bumped patch version