- separate sleeping functionality to _http_sleep()