summaryrefslogtreecommitdiff
path: root/testenv/conf/reject_header.py
blob: 53e237dd8df22509fd5b731c974a5cc563a5d974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from conf import rule

""" Rule: RejectHeader
This is a server side rule which expects a dictionary object of Headers and
their values which should be blacklisted by the server for a particular file's
requests.
"""


@rule()
class RejectHeader:
    def __init__ (self, header_obj):
        self.headers = header_obj