aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/semantics.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-19 20:46:26 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-22 15:30:51 +0200
commit83f013fca13c7395ca4e3da3fac60c8d907172b6 (patch)
treed1dad0ad2ff495808c8ecbe83ce335008d847b22 /netlib/http/semantics.py
parentd62dbee0f6cd47b4cad1ee7cc731b413600c0add (diff)
downloadmitmproxy-83f013fca13c7395ca4e3da3fac60c8d907172b6.tar.gz
mitmproxy-83f013fca13c7395ca4e3da3fac60c8d907172b6.tar.bz2
mitmproxy-83f013fca13c7395ca4e3da3fac60c8d907172b6.zip
introduce EmptyRequest class
Diffstat (limited to 'netlib/http/semantics.py')
-rw-r--r--netlib/http/semantics.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/netlib/http/semantics.py b/netlib/http/semantics.py
index 664f9def..355906dd 100644
--- a/netlib/http/semantics.py
+++ b/netlib/http/semantics.py
@@ -38,6 +38,20 @@ class Request(object):
return "Request(%s - %s, %s)" % (self.method, self.host, self.path)
+class EmptyRequest(Request):
+ def __init__(self):
+ super(EmptyRequest, self).__init__(
+ form_in="",
+ method="",
+ scheme="",
+ host="",
+ port="",
+ path="",
+ httpversion="",
+ headers="",
+ body="",
+ )
+
class ConnectRequest(Request):
def __init__(self, host, port):
super(ConnectRequest, self).__init__(