MCPcopy Create free account
hub / github.com/diillson/chatcli / httpInvocationMethod

Function httpInvocationMethod

cli/plugins/builtin_http.go:295–301  ·  view source on GitHub ↗

httpInvocationMethod extracts the resolved method for the caps layer.

(args []string)

Source from the content-addressed store, hash-verified

293
294// httpInvocationMethod extracts the resolved method for the caps layer.
295func httpInvocationMethod(args []string) string {
296 in, err := parseHTTPInvocation(args)
297 if err != nil {
298 return ""
299 }
300 return in.Method
301}
302
303// parseHTTPInvocation accepts the JSON envelope (cmd request|get|post|...)
304// or the argv form ("get http://..."). Method shortcuts fold into the method

Callers 1

IsReadOnlyMethod · 0.85

Calls 1

parseHTTPInvocationFunction · 0.85

Tested by

no test coverage detected