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

Method PutBoolField

internal/tui/client.go:371–375  ·  view source on GitHub ↗

----- Config field update methods ----- PutBoolField updates a boolean config field.

(path string, value bool)

Source from the content-addressed store, hash-verified

369
370// PutBoolField updates a boolean config field.
371func (c *Client) PutBoolField(path string, value bool) error {
372 body, _ := json.Marshal(map[string]any{"value": value})
373 _, err := c.put("/v0/management/"+path, strings.NewReader(string(body)))
374 return err
375}
376
377// PutIntField updates an integer config field.
378func (c *Client) PutIntField(path string, value int) error {

Callers 1

toggleBoolMethod · 0.80

Calls 1

putMethod · 0.95

Tested by

no test coverage detected