def on_request_success(request_type, name, response_time, response_length):
 stats['content-length'] += response_length

def on_request_success ( request_type , name , response_time , response_length ) : stats [ 'content-length' ] += response_length
event handler that get triggered on every successful request .