No need to copy the URL all the time, passing const reference it probably better.