#NEWLINE# def __init__( self , content = b'' , mimetype = None , code = 200 ) : #NEWLINE# #INDENT# self . _iter = None #NEWLINE# self . _is_str_iter = True #NEWLINE# self . content = content #NEWLINE# self . headers = HeaderDict ( ) #NEWLINE# self . cookies = SimpleCookie ( ) #NEWLINE# self . status_code = code #NEWLINE# defaults = self . defaults . _current_obj ( ) #NEWLINE# if ( not mimetype ) : #NEWLINE# #INDENT# mimetype = defaults . get ( 'content_type' , 'text/html' ) #NEWLINE# charset = defaults . get ( 'charset' ) #NEWLINE# if charset : #NEWLINE# #INDENT# mimetype = ( '%s; charset=%s' % ( mimetype , charset ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . headers . update ( defaults . get ( 'headers' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . headers [ 'Content-Type' ] = mimetype #NEWLINE# self . errors = defaults . get ( 'errors' , 'strict' )