Description

Insert inserts the given middleware immediately before a given existing middleware in the stack. Returns an error if "before" cannot be found in the current stack.

No attempt is made to enforce the uniqueness of middlewares. If the insertion point is ambiguous, the first (outermost) one is chosen. It is illegal to call this function concurrently with active requests.

Insert is referenced in 2 repositories

github.com/zenazn/goji

...