Added wait_with_retry method.

wait_with_retry catches HTTPClient::ReceiveTimeoutError.