def _make_cors_allowed_methods_for_path(self, path):
<EOL>all_http_methods = ["<STR_LIT>", "<STR_LIT:GET>", "<STR_LIT>", "<STR_LIT:POST>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]<EOL>if not self.has_path(path):<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>methods = list(self.get_path(path).keys())<EOL>if self._X_ANY_METHOD in methods:<EOL><INDENT>allow_methods = all_http_methods<EOL><DEDENT>else:<EOL><INDENT>allow_methods = methods<EOL>allow_methods.append("<STR_LIT>")  <EOL><DEDENT>allow_methods = list({m.upper() for m in allow_methods})<EOL>allow_methods.sort()<EOL>return '<STR_LIT:U+002C>'.join(allow_methods)<EOL>
Creates the value for Access-Control-Allow-Methods header for given path. All HTTP methods defined for this
path will be included in the result. If the path contains "ANY" method, then *all available* HTTP methods will
be returned as result.

:param string path: Path to generate AllowMethods value for
:return string: String containing the value of AllowMethods, if the path contains any methods.
                Empty string, otherwise