docs: def xross_listener(http_method=None, **xross_attrs):
      """Instructs xross to handle AJAX calls right from the moment it is called.
  
      This should be placed in a view decorated with `@xross_view()`.
  
      :param str http_method: GET or POST. To be used as a source of data for xross.
  
      :param dict xross_attrs: xross handler attributes.
          Those attributes will be available in operation functions in `xross` keyword argument.
  
      """
      handler = currentframe().f_back.f_locals['request']._xross_handler
      handler.set_attrs(**xross_attrs)
      if http_method is not None:
          handler.http_method = http_method
      handler.dispatch()