Skip to content

Commit

Permalink
[modify] skelton of ChooyanHttpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
chooyan-eng committed Sep 15, 2017
1 parent 28f4b94 commit bf66d14
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 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:
Expand Down

0 comments on commit bf66d14

Please sign in to comment.