From bf66d142da599e9a54dd8a2d1b0adf4e3a372b2b Mon Sep 17 00:00:00 2001 From: chooyan-eng Date: Fri, 15 Sep 2017 18:23:06 +0900 Subject: [PATCH] [modify] skelton of ChooyanHttpClient --- http_client.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/http_client.py b/http_client.py index 1efcd0d..2022aad 100644 --- a/http_client.py +++ b/http_client.py @@ -1,3 +1,14 @@ +class ChooyanHttpClient: + + def request(host, port=80): + response = ChooyanResponse() + return response + +class ChooyanResponse: + def __init__(self): + self.responce_code = None + self.body = None + if __name__ == '__main__': resp = ChooyanHttpClient.request('www.hasam.jp', 80) if resp.responce_code == 200: