Added new method getHeadersFormatted