http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/commit/88f204a0bd67fa753f04ff6bb09e90d9579794bd
Thread ( target = self . httpd . serve_forever , name = f ' { self . name } thread ' ) t . daemon = True t . start ( ) def stop ( self ) : self . httpd . server_close ( ) def application ( self , environ , start_response ) : method = environ [ ' REQUEST_METHOD ' ] response_body = self . make_response_body ( method , environ ) status = ' 200 OK ' response_headers = [ ( ' Content-Type ' , self . content_type ) , ( ' Content-Length ' , str ( len ( response_body ) ) ) ]...