code: def register(*paths, methods=None, name=None, handler=None):
      
      def wrapper(method):
          """Store route params into method."""
          method = to_coroutine(method)
          setattr(method, ROUTE_PARAMS_ATTR, (paths, methods, name))
          if handler and not hasattr(handler, method.__name__):
              setattr(handler, method.__name__, method)
          return method
      return wrapper
docs: Mark Handler.method to aiohttp handler.
  
      It uses when registration of the handler with application is postponed.
  
      ::
          class AwesomeHandler(Handler):
  
              def get(self, request):
                  return "I'm awesome!"
  
              @register('/awesome/best')
              def best(self, request):
                  return "I'm best!"