Package cherrypy :: Module _cpdispatch :: Class MethodDispatcher
[hide private]
[frames] | no frames]

Class MethodDispatcher

source code

object --+    
         |    
Dispatcher --+
             |
            MethodDispatcher

Additional dispatch based on cherrypy.request.method.upper().

Methods named GET, POST, etc will be called on an exposed class. The method names must be all caps; the appropriate Allow header will be output showing all capitalized method names as allowable HTTP verbs.

Note that the containing class must be exposed, not the methods.

Instance Methods [hide private]
 
__call__(self, path_info)
Set handler and config for the current request.
source code

Inherited from Dispatcher: find_handler

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, path_info)
(Call operator)

source code 

Set handler and config for the current request.

Overrides: Dispatcher.__call__