// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/data_reduction_proxy/core/common/data_reduction_proxy_util.h"

namespace data_reduction_proxy {

bool IsMethodIdempotent(const std::string& method) {
  return method == "GET" || method == "OPTIONS" || method == "HEAD" ||
         method == "PUT" || method == "DELETE" || method == "TRACE";
}

}  // namespace data_reduction_proxy
