improve HttpResponse support