#NEWLINE# def create_response( self , content , **response_kwargs ) : #NEWLINE# #INDENT# 'Return a response, serialising the content' #NEWLINE# response_class = response_kwargs . pop ( 'response_class' , content . response_class ) #NEWLINE# response_kwargs . setdefault ( 'content_type' , self . CONTENT_TYPES [ 0 ] ) #NEWLINE# return response_class ( self . dumps ( content ) , ** response_kwargs )