mailgun/vulcan — pull request #88 by marbemac (2014-12-15 05:53:15+00:00)
Title: MiddlewareChain should be a Middleware interface

As described in the documatation:

If, during ProcessRequest, a middleware returns a response or error, don't process the rest of the chain.

During ProcessResponse, only call the middleware that was called during ProcessRequest, and do it in reverse order.

Didn't see any tests for the equivalent functions in ObserverChain (ObserveRequest and ObserveResponse).