bool RequestParser::OnHeadersEnd() {
  // Decode the URL path before match.
  std::string url_path = Url::DecodeUnsafe(request_->url().path());
  bool matched = view_matcher_(request_->method(), url_path, &stream_);
  if (!matched) {
    LOG_WARN("No view matches the request: %s %s", request_->method().c_str(),
             url_path.c_str());
  }
  return matched;
}
bool RequestParser::OnHeadersEnd() {
   
  std::string url_path = Url::DecodeUnsafe(request_->url().path());
  bool matched = view_matcher_(request_->method(), url_path, &stream_);
  if (!matched) {
    LOG_WARN("No view matches the request: %s %s", request_->method().c_str(),
             url_path.c_str());
  }
  return matched;
}