Index of the wsgifilter module
-
m
wsgifilter
...
- m filter ...
-
m
relocateresponse
...
- Takes a response (headers + content) and relocates it, changing domain
names and paths.
- C RelocateMiddleware ...
- f relocate_content ...
- f relocate_response ... - Takes headers and content, and replaces all instances of old_href with new_href. Returns (new_headers, new_content)
- f relocate_headers ...
- f relocate_href ...
-
m
proxycommand
...
- This implements the basic framework for making an HTTP proxy app from
your filter.
- f run_proxy_command ... - Run the proxy command, using the options and args and the WSGI middleware
- f run_proxy ...
- f make_basic_optparser ... - Creates a parser that parses the options for the run_proxy() function. You may modify the parser this returns, to add option appropriate for building your WSGI middleware.
-
m
proxyapp
...
- WSGI proxy application that applies a deliverance theme while
passing the request to another HTTP server
- C ForcedProxy ...
-
C
DebugHeaders
...
- a translate_keys ...
- f __call__ ...
- f show_request_body ...
- f __init__ ...
- f make_debug_headers ... - Show all the headers that come to the application.
-
m
examples
...
-
m
testingvars
...
- Shows any variables that were put in
environ['paste.testing_variables'] at the bottom of each page.
-
C
TestingVars
...
- a standard_css ...
- a end_body_re ...
- f format_vars ...
- f filter ...
- f add_to_end_of_body ...
- f __call__ ...
- f smart_quote ...
- f safe_repr ...
-
C
TestingVars
...
-
m
testingvars
...
- Shows any variables that were put in
environ['paste.testing_variables'] at the bottom of each page.
-
m
htmlserialize
...
- a html_transform ...
- a pretty_html_transform ...
- a pretty_html_xsl ...
- a html_xsl ...
- f tostring ... - return HTML string representation of the document given
- f decodeAndParseHTML ... - if an html meta tag specifying a charset can be matched, decode the text to a python unicode string before parsing
-
m
fixuplinks
...
- utilities for manipulating html links
- a CSS_URL_PAT ...
- f resolve_base_tags_in_document ... - removes all html <base href=""> tags from the document given.
- f fixup_text_links ... - fixup_links(), but work on text and returns text
- f fixup_css_links ... - prepends url(...) in css style elements to be absolute links based on base_uri
- f fixup_links ... - Takes a given document (already parsed by lxml) and modifies it in-place. Every link is passed through link_repl_func, and the output of that function replaces the link.