getting and setting header in HTTPResponse improved