{"size": 368, "ext": "js", "max_stars_repo_path": "lib/check-http-method.js", "max_stars_repo_name": "JasonRammoray/RxHttp", "max_stars_repo_stars_event_min_datetime": "2018-02-12T07:06:31.000Z", "max_stars_repo_stars_event_max_datetime": "2019-06-06T22:35:47.000Z", "max_issues_repo_path": "lib/check-http-method.js", "max_issues_repo_name": "JasonRammoray/RxHttp", "max_issues_repo_issues_event_min_datetime": "2018-02-14T17:16:45.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-21T15:03:53.000Z", "max_forks_repo_path": "lib/check-http-method.js", "max_forks_repo_name": "JasonRammoray/RxHttp", "max_forks_repo_forks_event_min_datetime": "2018-02-14T12:34:30.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-17T12:29:36.000Z"}
{"max_stars_count": 6, "max_issues_count": 7, "max_forks_count": 3, "avg_line_length": 24.5333333333, "max_line_length": 47, "alphanum_fraction": 0.7309782609}
const HTTP_METHODS = require('./http-methods');

/**
 * Checks if http method is correct or not
 * @param {String} method an HTTP verb name
 * to check for correctness
 * @return {Boolean} a boolean flag indicating
 * if an HTTP verb is correct or not
 */
function checkHttpMethod(method) {
  return HTTP_METHODS.includes(method);
}

module.exports = checkHttpMethod;
