Add heartbeat() function to chunked_request