An assortment of web server-related utilities.
| Function | redirectTo | Generate a redirect to the given location. | 
| Class | Redirect | Undocumented | 
| Class | ChildRedirector | Undocumented | 
| Class | ParentRedirect | I redirect to URLPath.here(). | 
| Class | DeferredResource | I wrap up a Deferred that will eventually result in a Resource object. | 
| Class | FailureElement | FailureElementis anIRenderablewhich
can render detailed information about aFailure. | 
| Function | formatFailure | Construct an HTML representation of the given failure. | 
| Function | _PRE | Wraps <pre> tags around some text and HTML-escape it. | 
| Class | _SourceLineElement | _SourceLineElementis anIRenderablewhich
can render a single line of source code. | 
| Class | _SourceFragmentElement | _SourceFragmentElementis anIRenderablewhich
can render several lines of source code near the line number of a 
particular frame object. | 
| Class | _FrameElement | _FrameElementis anIRenderablewhich
can render details about one frame from aFailure. | 
| Class | _StackElement | _StackElementrenders anIRenderablewhich
can render a list of frames. | 
Wraps <pre> tags around some text and HTML-escape it.
This is here since once twisted.web.html was deprecated it was hard to migrate the html.PRE from current code to twisted.web.template.
For new code consider using twisted.web.template.
| Returns | Escaped text wrapped in <pre> tags. (type: str) | |
Generate a redirect to the given location.
| Parameters | URL | A bytesgiving the location to which to redirect. (type:bytes) | 
| request | The request object to use to generate the redirect. (type: IRequestprovider) | |
| Returns | A bytescontaining HTML which tries to convince the client 
agent to visit the new location even if it doesn't respect the FOUND
response code.  This is intended to be returned from a render method, eg:
   def render_GET(self, request):
       return redirectTo(b"http://example.com/", request)
 | |
| Raises | TypeError | If the type of URLaunicodeinstead 
ofbytes. | 
Construct an HTML representation of the given failure.
Consider using FailureElement
instead.
| Returns | A string containing the HTML representation of the given failure. (type: bytes) | |