module documentation
An assortment of web server-related utilities.
| Class | |
Undocumented |
| Class | |
I wrap up a Deferred that will eventually result in a Resource object. |
| Class | |
FailureElement is an IRenderable which can render detailed information about a Failure. |
| Class | |
Redirect to the nearest directory and strip any query string. |
| Class | |
Resource that redirects to a specific URL. |
| Function | format |
Construct an HTML representation of the given failure. |
| Function | redirect |
Generate a redirect to the given location. |
| Class | _ |
_FrameElement is an IRenderable which can render details about one frame from a Failure. |
| Class | _ |
_SourceFragmentElement is an IRenderable which can render several lines of source code near the line number of a particular frame object. |
| Class | _ |
_SourceLineElement is an IRenderable which can render a single line of source code. |
| Class | _ |
_StackElement renders an IRenderable which can render a list of frames. |
| Function | _PRE |
Wraps <pre> tags around some text and HTML-escape it. |
Construct an HTML representation of the given failure.
Consider using FailureElement instead.
| Parameters | |
myFailure | Undocumented |
| Returns | |
bytes | A string containing the HTML representation of the given failure. |
Generate a redirect to the given location.
| Parameters | |
URL:bytes | A bytes giving the location to which to redirect. |
request:IRequest provider | The request object to use to generate the redirect. |
| Returns | |
bytes | A
def render_GET(self, request):
return redirectTo(b"http://example.com/", request)
|
| Raises | |
TypeError | If the type of URL a str instead of bytes. |