Implements everything related to proxying
-
class deliverance.proxy.ProxySet(proxies, ruleset, source_location=None, middleware_factory=None, middleware_factory_kwargs=None)
A container for all the <proxy> (Proxy) objects in a
ruleset.
-
class deliverance.proxy.Proxy(match, dest, request_modifications, response_modifications, strip_script_name=True, keep_host=False, source_location=None, classes=None, editable=False, wsgi=None)
Represents one <proxy> element.
This both matches requests, applies transformations, then sends
off the request. It also does local file serving when proxying to
file: URLs.
-
class deliverance.proxy.ProxyMatch(path=None, domain=None, request_header=None, response_header=None, environ=None, pyref=None, source_location=None, response_status=None)
Represents the request matching for <proxy> objects
-
class deliverance.proxy.ProxyDest(href=None, pyref=None, next=False, source_location=None)
Represents the <dest> element
-
class deliverance.proxy.ProxyRequestModification(pyref=None, header=None, content=None, source_location=None)
Represents the <request> element in <proxy>
-
class deliverance.proxy.ProxyResponseModification(pyref=None, header=None, content=None, rewrite_links=False, source_location=None)
Represents the <response> element in <proxy>
-
class deliverance.proxy.ProxySettings(server_host, execute_pyref=True, display_local_files=True, edit_local_files=True, dev_allow_ips=None, dev_deny_ips=None, dev_htpasswd=None, dev_users=None, dev_expiration=0, dev_secret_file='/tmp/deliverance/devauth.txt', source_location=None, middleware_factory=None, middleware_factory_kwargs=None)
Represents the settings (<server-settings>) for the proxy