MCPcopy Create free account
hub / github.com/clockwork-xyz/clockwork / parse_http_method

Function parse_http_method

cli/src/parser.rs:315–318  ·  view source on GitHub ↗
(arg: &str, matches: &ArgMatches)

Source from the content-addressed store, hash-verified

313}
314
315fn parse_http_method(arg: &str, matches: &ArgMatches) -> Result<HttpMethod, CliError> {
316 Ok(HttpMethod::from_str(parse_string(arg, matches)?.as_str())
317 .map_err(|_err| CliError::BadParameter(arg.into()))?)
318}
319
320fn parse_pubkey(arg: &str, matches: &ArgMatches) -> Result<Pubkey, CliError> {
321 Ok(Pubkey::from_str(parse_string(arg, matches)?.as_str())

Callers 1

parse_webhook_commandFunction · 0.85

Calls 1

parse_stringFunction · 0.85

Tested by

no test coverage detected