MCPcopy Create free account
hub / github.com/bugy/script-server / send

Method send

src/communications/destination_http.py:49–54  ·  view source on GitHub ↗
(self, body, content_type=None)

Source from the content-addressed store, hash-verified

47 self.url = 'http://' + self.url.strip()
48
49 def send(self, body, content_type=None):
50 headers = {}
51 if content_type:
52 headers['Content-Type'] = content_type
53
54 requests.post(self.url, data=body, headers=headers)
55
56 def __str__(self, *args, **kwargs):
57 return 'Web-hook at ' + self.url

Callers

nothing calls this directly

Calls 1

postMethod · 0.45

Tested by

no test coverage detected