MCPcopy Create free account
hub / github.com/Tong89/smartNode / _post_req

Function _post_req

tests/test_api_errors.py:74–79  ·  view source on GitHub ↗
(client, payload, content_type="application/json")

Source from the content-addressed store, hash-verified

72
73
74def _post_req(client, payload, content_type="application/json"):
75 return client.post(
76 "/api/request",
77 data=json.dumps(payload) if isinstance(payload, dict) else payload,
78 content_type=content_type,
79 )
80
81
82# ---------------------------------------------------------------------------

Calls 1

postMethod · 0.80

Tested by

no test coverage detected