- Adding toArray method to get http response headers as an array