

def do_POST(self):
    global received_metrics
    print_ok('handling POST to fake bridge')
    length = int(self.headers['Content-Length'])
    received_metrics = json.loads(self.rfile.read(length).decode('utf-8'))

dataset/ETHPy150Open square/ghostunnel/tests/test-client-metrics-bridge.py FakeMetricsBridgeHandler.do_POST/original