summaryrefslogtreecommitdiffstats
path: root/testenv/conf/reject_header.py
blob: 0dcf463cb298a0559df6f4186a47dcdd6097a127 (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