def aio_rpc_request(method):
    """
    A method decorator announcing the method to be exposed as
    a request handler.

    This decorator assumes that the first parameter (after ``self``)
    takes a BSONRpc/JSONRpc object reference as an argument, so that the method
    will have an access to make RPC callbacks on the peer node (requests and
    notifications) during its execution. From the second parameter onward the
    parameters are exposed as-is to the peer node.
    """
    method._request_handler = True
    return method