#NEWLINE# @ classmethod #NEWLINE# def text_response_server( cls , text , request_timeout = 0.5 , **kwargs ) : #NEWLINE# #INDENT# def text_response_handler( sock ) : #NEWLINE# #INDENT# request_content = consume_socket_content ( sock , timeout = request_timeout ) #NEWLINE# sock . send ( text . encode ( 'utf-8' ) ) #NEWLINE# return request_content #NEWLINE# #UNINDENT# return Server ( text , ** kwargs )