// head returns the top/first middleware of the Chain.
head returns the top/first middleware of the Chain.
// head returns the top / first middleware of the Chain .
func (chain *Chain) head() (head *Chain) {
	head = chain
	for head.parent != nil {
		head = head.parent
	}
	return
}
func ( chain * Chain ) head ( ) ( head * Chain ) { head = chain for head . parent != nil { head = head . parent } return }
head returns the top/first middleware of the Chain.
head returns the top / first middleware of the Chain .
// Find the head of the chain