_request = new Request(request); _response = null; InputStream is = request.getContentStream(); CopyInputStream cis = null; if (is != null) { cis = new CopyInputStream(is); request.setContentStream(cis); _request.setContentStream(cis); } Response response = _client.fetchResponse(request); _response = new Response(response); is = response.getContentStream(); cis = null; if (is != null) { cis = new CopyInputStream(is); response.setContentStream(cis); _response.setContentStream(cis); } return response;
_request = request; _response = _client.fetchResponse(request); return _response;
    public Response fetchResponse(Request request) {        _request = new Request(request);        _response = null;        InputStream is = request.getContentStream();        CopyInputStream cis = null;        if (is != null) {            cis = new CopyInputStream(is);            request.setContentStream(cis);            _request.setContentStream(cis);        }        Response response = _client.fetchResponse(request);        _response = new Response(response);        is = response.getContentStream();        cis = null;        if (is != null) {            cis = new CopyInputStream(is);            response.setContentStream(cis);            _response.setContentStream(cis);        }        return response;    }