t.w.x.withRequest(f) : function documentation

Part of twisted.web.xmlrpc View Source

Decorator to cause the request to be passed as the first argument to the method.

If an xmlrpc_ method is wrapped with withRequest, the request object is passed as the first argument to that method. For example:

   @withRequest
   def xmlrpc_echo(self, request, s):
       return s
Present Since10.2
API Documentation for Twisted, generated by pydoctor at 2013-11-08 22:07:30.