bool RequestParser::ParseStartLine(const std::string& line) {
  std::vector<string_view> parts;
  Split(line, ' ', true, &parts);

  if (parts.size() != 3) {
    return false;
  }

  request_->set_method(parts[0]);
  request_->set_url(Url{ parts[1] });

  // HTTP version is ignored.

  return true;
}
bool RequestParser::ParseStartLine(const std::string& line) {
  std::vector<string_view> parts;
  Split(line, ' ', true, &parts);

  if (parts.size() != 3) {
    return false;
  }

  request_->set_method(parts[0]);
  request_->set_url(Url{ parts[1] });

   

  return true;
}