/* * (non-Javadoc) * * @see org.owasp.proxy.daemon.HttpRequestHandler#handleRequest(java.net.InetAddress , * org.owasp.httpclient.StreamingRequest) */ public StreamingResponse handleRequest( final InetAddress source, StreamingRequest request, boolean isContinue) throws IOException, MessageFormatException { MutableBufferedRequest req = new MutableBufferedRequest.Impl(); MutableBufferedResponse resp = new MutableBufferedResponse.Impl(); ConversationObserver observer = new ConversationObserver(source, req, resp); MessageUtils.delayedCopy(request, req, max, observer.getRequestObserver()); StreamingResponse response = next.handleRequest(source, request, isContinue); MessageUtils.delayedCopy(response, resp, max, observer.getResponseObserver()); return response; }