MCPcopy
hub / github.com/sparckles/Robyn / post

Method post

robyn/testing.py:321–325  ·  view source on GitHub ↗
(self, path: str, json_data: Any = None, **kw)

Source from the content-addressed store, hash-verified

319 return self._execute("GET", path, **kw)
320
321 def post(self, path: str, json_data: Any = None, **kw) -> TestResponse:
322 if json_data is not None and "body" not in kw:
323 kw["body"] = json.dumps(json_data)
324 kw.setdefault("headers", {})["Content-Type"] = "application/json"
325 return self._execute("POST", path, **kw)
326
327 def put(self, path: str, json_data: Any = None, **kw) -> TestResponse:
328 if json_data is not None and "body" not in kw:

Calls 2

_executeMethod · 0.95
dumpsMethod · 0.80

Tested by

no test coverage detected