@web.app.route('/content-length')
def total_content_length():
 return ('Total content-length recieved: %i' % stats['content-length'])

@ web . app . route ( '/content-length' ) def total_content_length ( ) : return ( 'Total content-length recieved: %i' % stats [ 'content-length' ] )
add a route to the locust web app .