Added a new method: setHttpHeaders.