def is_stream_handler(self, request):
handler = self.get(request)[<NUM_LIT:0>]<EOL>if (hasattr(handler, '<STR_LIT>') and<EOL>hasattr(handler.view_class, request.method.lower())):<EOL><INDENT>handler = getattr(handler.view_class, request.method.lower())<EOL><DEDENT>return hasattr(handler, '<STR_LIT>')<EOL>
Handler for request is stream or not.
        :param request: Request object
        :return: bool