deliverance.pagematch – matching requests and responses

Handles the <match> tag and matching requests and responses against these patterns.

Contents

Module Contents

class deliverance.pagematch.Match(classes=None, abort=False, last=False, **kw)

Represents the <match> page-class applicator.

class deliverance.pagematch.AbstractMatch(path=None, domain=None, request_header=None, response_header=None, environ=None, pyref=None, source_location=None, response_status=None)

Represents the <match> tags.

You can call this object to apply the match

deliverance.pagematch.run_matches(matchers, request, resp, response_headers, log)

Runs all the match objects in matchers, returning the list of matched classes.