'This method handles EVERY request that was send by the browser, since
this is just a base/example implementation we just:
* Load the request form the flow
* Translate the request into a w3af HTTPRequest
* Send it to the wire using our uri_opener
* Set the response
:param flow: A libmproxy flow containing the request'

def handle_request_in_thread(self, flow):

    http_request = self._to_w3af_request(flow.request)
    try:
        http_response = self._send_http_request(http_request)
    except Exception as e:
        trace = str(traceback.format_exc())
        http_response = self._create_error_response(http_request, None, e, trace=trace)
    http_response = self._to_libmproxy_response(flow.request, http_response)
    flow.reply(http_response)
