Http onloading method returns the response head