``headers`` should come before ``priority`` argument