parameters: ()
docstring: Registers web request handlers with the application server.
docstring_summary: Registers web request handlers with the application server.
docstring_tokens: Registers web request handlers with the application server .
function: def RegisterHandlers():
    """Registers web request handlers with the application server."""
  
    import server
    from tornado import web
  
    class WebConfigureHandler(web.RequestHandler):
  
      def post(self):
        server.SwitchGadget(EchoGadget())
  
    server.app.add_handlers('.*$', [
        (r'/echo/configure', WebConfigureHandler),
    ])
function_tokens: def RegisterHandlers ( ) : import server from tornado import web class WebConfigureHandler ( web . RequestHandler ) : def post ( self ) : server . SwitchGadget ( EchoGadget ( ) ) server . app . add_handlers ( '.*$' , [ ( r'/echo/configure' , WebConfigureHandler ) , ] )