aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/language/http.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-05-17 10:43:30 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-05-17 10:43:30 +1200
commite4feba54330e1afcfb8d48bce8c474659aba281c (patch)
treee3b7369a66f309e8228aac26a4fe8f5e932debcf /libpathod/language/http.py
parent2ee60783b694b6a8555a6afbef21dc1f2ca1f8b9 (diff)
downloadmitmproxy-e4feba54330e1afcfb8d48bce8c474659aba281c.tar.gz
mitmproxy-e4feba54330e1afcfb8d48bce8c474659aba281c.tar.bz2
mitmproxy-e4feba54330e1afcfb8d48bce8c474659aba281c.zip
Introduce and enfoce uniqueness constraints for language components
Diffstat (limited to 'libpathod/language/http.py')
-rw-r--r--libpathod/language/http.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpathod/language/http.py b/libpathod/language/http.py
index 070cc5f4..daee7e54 100644
--- a/libpathod/language/http.py
+++ b/libpathod/language/http.py
@@ -46,6 +46,8 @@ class Method(base.OptionsOrValue):
class _HeaderMixin(object):
+ unique_name = None
+
def format_header(self, key, value):
return [key, ": ", value, "\r\n"]
@@ -166,6 +168,7 @@ class _HTTPMessage(message.Message):
class Response(_HTTPMessage):
+ unique_name = None
comps = (
Body,
Header,