@content_type('text/plain')
def text(body, charset='utf-8', **kwargs):
 return body.read().decode(charset)

@ content_type ( 'text/plain' ) def text ( body , charset = 'utf-8' , ** kwargs ) : return body . read ( ) . decode ( charset )
takes plain text data .