class_docstr: Rule-based router implementation.
class_docstr_tok: ["Rule-based","router","implementation","."]
docstr: Returns an instance of `~.httputil.HTTPMessageDelegate` for a
  Rule's target. This method is called by `~.find_handler` and can be
  extended to provide additional target types.
  
  :arg target: a Rule's target.
  :arg httputil.HTTPServerRequest request: current request.
  :arg target_params: additional parameters that can be useful
      for `~.httputil.HTTPMessageDelegate` creation.
docstr_tok: ["Returns","an","instance","of","`","~.httputil.HTTPMessageDelegate","`","for","a","Rule","'s","target",".","This","method","is","called","by","`","~.find_handler","`","and","can","be","extended","to","provide","additional","target","types",".",":","arg","target",":","a","Rule","'s","target",".",":","arg","httputil.HTTPServerRequest","request",":","current","request",".",":","arg","target_params",":","additional","parameters","that","can","be","useful","for","`","~.httputil.HTTPMessageDelegate","`","creation","."]
code: def get_target_delegate(self, target, request, **target_params):
      """Returns an instance of `~.httputil.HTTPMessageDelegate` for a
      Rule's target. This method is called by `~.find_handler` and can be
      extended to provide additional target types.
  
      :arg target: a Rule's target.
      :arg httputil.HTTPServerRequest request: current request.
      :arg target_params: additional parameters that can be useful
          for `~.httputil.HTTPMessageDelegate` creation.
      """
      if isinstance(target, Router):
          return target.find_handler(request, **target_params)
  
      elif isinstance(target, httputil.HTTPServerConnectionDelegate):
          return target.start_request(
              request.server_connection, request.connection
          )
  
      elif callable(target):
          return _CallableAdapter(
              partial(target, **target_params), request.connection
          )
  
      return None
  
imports: from __future__ import absolute_import, division, print_function
  import re
  from functools import partial
  from tornado import httputil
  from tornado.httpserver import _CallableAdapter
  from tornado.escape import url_escape, url_unescape, utf8
  from tornado.log import app_log
  from tornado.util import basestring_type, import_object, re_unescape, unicode_type
label_desc: Use image node_id 5 for calling the RuleRouter obj's underlying member method code with example usage: obj.get_target_delegate(target, request) and returns: None, target, target, _CallableAdapter