Python Paste


relocateresponse

Takes a response (headers + content) and relocates it, changing domain names and paths.


Functions

f relocate_response(headers, content, base_href, old_href, new_href) ...

Takes headers and content, and replaces all instances of old_href with new_href. Returns (new_headers, new_content)

f relocate_headers(headers, base_href, old_href, new_href) ...

f relocate_content(content, base_href, old_href, new_href) ...

f relocate_href(href, base_href, old_href, new_href) ...

Classes

C RelocateMiddleware(...) ...

This class contains 2 members.

See the source for more information.