Return-Path: Delivered-To: apmail-hc-commits-archive@www.apache.org Received: (qmail 43575 invoked from network); 22 Mar 2011 16:16:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Mar 2011 16:16:00 -0000 Received: (qmail 3735 invoked by uid 500); 22 Mar 2011 16:16:00 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 3693 invoked by uid 500); 22 Mar 2011 16:15:59 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 3686 invoked by uid 99); 22 Mar 2011 16:15:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 16:15:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 16:15:57 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C7B4B23889ED; Tue, 22 Mar 2011 16:15:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1084233 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/AbstractHttpEntity.java Date: Tue, 22 Mar 2011 16:15:24 -0000 To: commits@hc.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110322161524.C7B4B23889ED@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebb Date: Tue Mar 22 16:15:24 2011 New Revision: 1084233 URL: http://svn.apache.org/viewvc?rev=1084233&view=rev Log: Document chunk hint Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/AbstractHttpEntity.java Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/AbstractHttpEntity.java URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/AbstractHttpEntity.java?rev=1084233&r1=1084232&r2=1084233&view=diff ============================================================================== --- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/AbstractHttpEntity.java (original) +++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/AbstractHttpEntity.java Tue Mar 22 16:15:24 2011 @@ -153,6 +153,13 @@ public abstract class AbstractHttpEntity /** * Specifies the 'chunked' flag. + *

+ * Note that the chunked setting is a hint only. + * If using HTTP/1.0, chunking is never performed. + * Otherwise, even if chunked is false, HttpClient must + * use chunk coding if the entity content length is + * unknown (-1). + *

* The default implementation sets the value of the * {@link #chunked chunked} attribute. *