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

Method __init__

src/communications/destination_http.py:43–47  ·  view source on GitHub ↗
(self, params_dict)

Source from the content-addressed store, hash-verified

41
42class HttpCommunicator:
43 def __init__(self, params_dict):
44 self.url = read_obligatory(params_dict, 'url', ' for HTTP callback')
45
46 if not self.url.strip().lower().startswith('http'):
47 self.url = 'http://' + self.url.strip()
48
49 def send(self, body, content_type=None):
50 headers = {}

Callers

nothing calls this directly

Calls 1

read_obligatoryFunction · 0.90

Tested by

no test coverage detected