This is used to get the header info so that we can test authentication.
Method | __init__ |
Initialize. |
Method | render |
Render a given resource. See IResource 's render method. |
Method | xmlrpc |
Undocumented |
Instance Variable | request |
Undocumented |
Inherited from Test
:
Method | lookup |
Given a string naming a procedure, return a callable object for that procedure or raise NoSuchFunction. |
Method | xmlrpc |
This function add two numbers. |
Method | xmlrpc |
Undocumented |
Method | xmlrpc |
Help for defer. |
Method | xmlrpc_defer |
Undocumented |
Method | xmlrpc_defer |
Undocumented |
Method | xmlrpc |
Undocumented |
Method | xmlrpc |
Undocumented |
Method | xmlrpc |
Undocumented |
Method | xmlrpc |
Undocumented |
Method | xmlrpc |
This function puts the two arguments in an array. |
Method | xmlrpc |
Used to test that we can pass Unicode. |
Method | xmlrpc_with |
A method decorated with withRequest which can be called by a test to verify that the request object really is passed as an argument. |
Constant | FAILURE |
Undocumented |
Constant | NOT |
Undocumented |
Constant | SESSION |
Undocumented |
Inherited from XMLRPC
(via Test
):
Method | __setattr__ |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | list |
Return a list of the names of all xmlrpc procedures. |
Method | put |
Undocumented |
Method | render_ |
Undocumented |
Class Variable | allowed |
Undocumented |
Class Variable | is |
Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource. |
Class Variable | separator |
Undocumented |
Instance Variable | allow |
Permit XML translating of Python constant None. |
Instance Variable | sub |
Undocumented |
Instance Variable | use |
Present datetime values as datetime.datetime objects? |
Method | _cb |
Undocumented |
Method | _eb |
Undocumented |
Class Variable | _log |
Undocumented |
Inherited from Resource
(via Test
, XMLRPC
):
Method | del |
Undocumented |
Method | get |
Retrieve a 'child' resource from me. |
Method | get |
Deprecated in favor of getChildForRequest . |
Method | get |
Retrieve a static or dynamically generated child resource from me. |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | list |
Undocumented |
Method | put |
Register a static child. |
Method | really |
Undocumented |
Method | render_ |
Default handling of HEAD method. |
Class Variable | server |
Undocumented |
Instance Variable | children |
Undocumented |
twisted.web.resource.Resource.render
Render a given resource. See IResource
's render method.
I delegate to methods of self with the form 'render_METHOD' where METHOD is the HTTP that was used to make the request. Examples: render_GET, render_HEAD, render_POST, and so on. Generally you should implement those methods instead of overriding this one.
render_METHOD methods are expected to return a byte string which will be the rendered page, unless the return value is server.NOT_DONE_YET, in which case it is this class's responsibility to write the results using request.write(data) and then call request.finish().
Old code that overrides render() directly is likewise expected to return a byte string or NOT_DONE_YET.
See Also | |
IResource.render |