httpInvocationMethod extracts the resolved method for the caps layer.
(args []string)
| 293 | |
| 294 | // httpInvocationMethod extracts the resolved method for the caps layer. |
| 295 | func 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 |
no test coverage detected