Match is the type of routing matches. It is inserted into C.Env under MatchKey when the Mux.Router middleware is invoked. If MatchKey is present at route dispatch time, the Handler of the corresponding Match will be called instead of performing routing as usual.

By computing a Match and inserting it into the Goji environment as part of a middleware stack (see Mux.Router, for instance), it is possible to customize Goji's routing behavior or replace it entirely.

Match is referenced in 1 repository