@classmethod<EOL><INDENT>def handle_request(cls, request, dispatcher):<DEDENT>
rs = request if isinstance(request, JSONRPC20BatchRequest)else [request]<EOL>responses = [r for r in cls._get_responses(rs, dispatcher)<EOL>if r is not None]<EOL>if not responses:<EOL><INDENT>return<EOL><DEDENT>if isinstance(request, JSONRPC20BatchRequest):<EOL><INDENT>return JSONRPC20BatchResponse(*responses)<EOL><DEDENT>else:<EOL><INDENT>return responses[<NUM_LIT:0>]<EOL><DEDENT>
Handle request data.

        At this moment request has correct jsonrpc format.

        :param dict request: data parsed from request_str.
        :param jsonrpc.dispatcher.Dispatcher dispatcher:

        .. versionadded: 1.8.0