MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / patchRule

Method patchRule

cmd/inject-cli/main.go:211–214  ·  view source on GitHub ↗
(rule InjectionRule)

Source from the content-addressed store, hash-verified

209}
210
211func (c *apiClient) patchRule(rule InjectionRule) error {
212 _, err := c.doJSON("PATCH", "/v0/management/tool-call-injection", rule)
213 return err
214}
215
216func (c *apiClient) deleteRule(name string) error {
217 _, err := c.doJSON("DELETE", "/v0/management/tool-call-injection?name="+name, nil)

Callers 1

cmdRulesAddFunction · 0.80

Calls 1

doJSONMethod · 0.95

Tested by

no test coverage detected