void Url::AppendQuery(string_view key, string_view value, bool encode) {
  if (!query_.empty()) {
    query_ += "&";
  }
  if (encode) {
    query_ += Url::EncodeQuery(key) + "=" + Url::EncodeQuery(value);
  } else {
    query_ += ToString(key) + "=" + ToString(value);
  }
}
void Url::AppendQuery(string_view key, string_view value, bool encode) {
  if (!query_.empty()) {
    query_ += "&";
  }
  if (encode) {
    query_ += Url::EncodeQuery(key) + "=" + Url::EncodeQuery(value);
  } else {
    query_ += ToString(key) + "=" + ToString(value);
  }
}