OSDN Git Service

Merge pull request #201 from Bytom/v0.1
[bytom/vapor.git] / tools / side_chain_tool / app / api / Connection.py
diff --git a/tools/side_chain_tool/app/api/Connection.py b/tools/side_chain_tool/app/api/Connection.py
deleted file mode 100644 (file)
index 014ce7c..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-import requests
-import json
-
-class Connection(object):
-    def __init__(self, base_url, token=''):
-        self.baseUrl = base_url
-        self.token = token
-
-    def request(self, path, body={}):
-        url = self.baseUrl + path
-        headers = {}
-        resp = requests.post(url, data=json.dumps(body), headers=headers)
-        return resp
-
-    @staticmethod
-    def generate():
-        return Connection("http://127.0.0.1:9888")