Add HTTP Method verifier utility function, and fixed case where headers could be nil.