'Send the request and the response to the output manager.'

def _log_req_resp(self, request, response):

    if (not isinstance(response, HTTPResponse)):
        url = request.url_object
        resp = HTTPResponse.from_httplib_resp(response, original_url=url)
        resp.set_id(response.id)
    else:
        resp = response
    if (not isinstance(request, HTTPRequest)):
        msg = 'There    is    something    odd    going    on    in    OutputManagerHandler,    request    should    be    of    type    HTTPRequest    got    %s    instead.'
        raise TypeError((msg % type(request)))
    om.out.log_http(request, resp)
