Add support for setting an array of headers