From e4feba54330e1afcfb8d48bce8c474659aba281c Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 17 May 2015 10:43:30 +1200 Subject: Introduce and enfoce uniqueness constraints for language components --- libpathod/language/http.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libpathod/language/http.py') 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, -- cgit v1.2.3