diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-04-12 11:32:27 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-04-12 11:32:27 +1200 |
commit | 1a79ef8b6ce280563a9c5b3289ec2ecf4024c6b7 (patch) | |
tree | 6fa02d74fc2c43c2ad8c43ba5d669c54c43d2dc8 /netlib/wsgi.py | |
parent | 2630da7263242411d413b5e4b2c520d29848c918 (diff) | |
parent | e58f76aec1db9cc784a3b73c3050d010bb084968 (diff) | |
download | mitmproxy-1a79ef8b6ce280563a9c5b3289ec2ecf4024c6b7.tar.gz mitmproxy-1a79ef8b6ce280563a9c5b3289ec2ecf4024c6b7.tar.bz2 mitmproxy-1a79ef8b6ce280563a9c5b3289ec2ecf4024c6b7.zip |
Merge branch 'master' of https://github.com/mitmproxy/netlib
Diffstat (limited to 'netlib/wsgi.py')
-rw-r--r-- | netlib/wsgi.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/netlib/wsgi.py b/netlib/wsgi.py index 568b1f9c..bac27d5a 100644 --- a/netlib/wsgi.py +++ b/netlib/wsgi.py @@ -3,18 +3,18 @@ import cStringIO, urllib, time, traceback from . import odict, tcp -class ClientConn: +class ClientConn(object): def __init__(self, address): self.address = tcp.Address.wrap(address) -class Flow: +class Flow(object): def __init__(self, address, request): self.client_conn = ClientConn(address) self.request = request -class Request: +class Request(object): def __init__(self, scheme, method, path, headers, content): self.scheme, self.method, self.path = scheme, method, path self.headers, self.content = headers, content @@ -35,7 +35,7 @@ def date_time_string(): return s -class WSGIAdaptor: +class WSGIAdaptor(object): def __init__(self, app, domain, port, sversion): self.app, self.domain, self.port, self.sversion = app, domain, port, sversion |