MCPcopy Create free account
hub / github.com/comaps/comaps / do_POST

Method do_POST

tools/python/test_server/server/testserver.py:176–185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

174
175
176 def do_POST(self):
177 self.init_vars()
178 self.server.reset_selfdestruct_timer()
179 headers = self.prepare_headers()
180 payload = self.response_provider.response_for_url_and_headers(self.path, headers)
181 if payload.response_code() >= 300:
182 length = int(self.headers.get('content-length'))
183 self.dispatch_response(Payload(self.rfile.read(length)))
184 else:
185 self.dispatch_response(payload)
186
187
188 def do_GET(self):

Callers

nothing calls this directly

Calls 9

init_varsMethod · 0.95
prepare_headersMethod · 0.95
dispatch_responseMethod · 0.95
PayloadClass · 0.90
response_codeMethod · 0.80
getMethod · 0.65
readMethod · 0.45

Tested by

no test coverage detected