// Then chains the middleware and returns the final Handler.
Then chains the middleware and returns the final Handler.
// Then chains the middleware and returns the final Handler .
func (c Chain) Then(last Handler) Handler {
	_last := last
	if _last == nil {
		_last = noopHandler
	}
	for i := len(c) - 1; i >= 0; i-- {
		_last = c[i](_last)
	}
	return _last
}
func ( c Chain ) Then ( last Handler ) Handler { _last := last if _last == nil { _last = noopHandler } for i := len ( c ) - 1 ; i >= 0 ; i -- { _last = c [ i ] ( _last ) } return _last }
Then chains the middleware and returns the final Handler.
Then chains the middleware and returns the final Handler .