# Path: grappa_http/operators/base.py
# class BaseOperator(Operator):
#     def isadapter(self, response):
#     def adapt(self, response):
#     def on_access(self, response):
#     def match(self, response, *expected, **kw):


import re
from .base import BaseOperator, Operator
        res | should.not_have.header('Server').equal.to('nginx')

        # Expect style
        res | expect.to.have.header('Server', 'nginx')
        res | expect.to.have.header('server').equal.to('nginx')

        # Expect style - negation form
        res | expect.to_not.have.header('Server', 'nginx')
        res | expect.to_not.have.header('server').equal.to('nginx')
    """

    # Is the operator a keyword
    kind = Operator.Type.MATCHER

    # Operator keywords
    operators = ('header', 'headers')

    # Operator keywords
    aliases = ('of', 'to', 'be', 'equal')

    # Enable value diff
    show_diff = True

    # Error message templates
    expected_message = Operator.Dsl.Message(
        'a response that match header: "{value}"',
        'a response that does not match header: "{value}"',
    )

    # Subject message template

# Path: grappa_http/operators/base.py
# class BaseOperator(Operator):
#     def isadapter(self, response):
#     def adapt(self, response):
#     def on_access(self, response):
#     def match(self, response, *expected, **kw):


# Path: grappa_http/operators/header.py
import re
from .base import BaseOperator, Operator

        res | should.not_have.header('Server').equal.to('nginx')

        # Expect style
        res | expect.to.have.header('Server', 'nginx')
        res | expect.to.have.header('server').equal.to('nginx')

        # Expect style - negation form
        res | expect.to_not.have.header('Server', 'nginx')
        res | expect.to_not.have.header('server').equal.to('nginx')
    """

    # Is the operator a keyword
    kind = Operator.Type.MATCHER

    # Operator keywords
    operators = ('header', 'headers')

    # Operator keywords
    aliases = ('of', 'to', 'be', 'equal')

    # Enable value diff
    show_diff = True

    # Error message templates
    expected_message = Operator.Dsl.Message(
        'a response that match header: "{value}"',
        'a response that does not match header: "{value}"',
    )

    # Subject message template

    subject_message = Operator.Dsl.Message(