Allow headers to be set from a method object