def stream_request_body(cls):
 if (not issubclass(cls, RequestHandler)):
  raise TypeError('expected subclass of RequestHandler, got %r', cls)
 cls._stream_request_body = True
 return cls

def stream_request_body ( cls ) : if ( not issubclass ( cls , RequestHandler ) ) : raise TypeError ( 'expected subclass of RequestHandler, got %r' , cls ) cls . _stream_request_body = True return cls
apply to requesthandler subclasses to enable streaming body support .