Debian Codegraph @

testenv/conf/send_header.py

raw
1 from conf import rule
2
3 """ Rule: SendHeader
4 Have the server send custom headers when responding to a request for the file
5 this rule is applied to. The header_obj object is expected to be dictionary
6 mapping headers to their contents. """
7
8
9 @rule()
10 class SendHeader:
11 def __init__(self, header_obj):
12 self.headers = header_obj