Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9B74D11223 for ; Thu, 22 May 2014 12:33:56 +0000 (UTC) Received: (qmail 69838 invoked by uid 500); 22 May 2014 12:33:56 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 69800 invoked by uid 500); 22 May 2014 12:33:56 -0000 Mailing-List: contact dev-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 dev@hc.apache.org Received: (qmail 69792 invoked by uid 99); 22 May 2014 12:33:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 12:33:56 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of daddywri@gmail.com designates 209.85.213.52 as permitted sender) Received: from [209.85.213.52] (HELO mail-yh0-f52.google.com) (209.85.213.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 12:33:51 +0000 Received: by mail-yh0-f52.google.com with SMTP id z6so2866106yhz.11 for ; Thu, 22 May 2014 05:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pUAtoNQgbHn861Hfi3u7nWr3RJ+uRJyXdVm42t58X2M=; b=GpH7L4lMlBVk/7sRmyuprJn61dD/d7mR4sy86JUDRtoSZdnH6Oz4/TV7e5IxD4daMt +g3g/xfB5QBWUxtKq9y6AM1fRBU4V6AYRyW5rZK1VYQW85Xb/TgWT+l64MFVQGi/YJFu x+R2v2QoyBqYe3/6wVKaDk9cpFm1rPb9wAoFldDQBE0kW4ejjTphEJJ5QmlvxphwAT7i 2kR9Ge/FBJxq0s80HtxlJ1fX1/kQsPYKz1krioKf8bkdmvdDwVyrZWrbWT7wJpFR4L+4 FywonSUx4mLoKBugpu8MQhrPmku5ucyC0RpvSWV+n9PJmyO1KJQXkRtFAYMkwLgIMXQB DNyw== MIME-Version: 1.0 X-Received: by 10.236.45.10 with SMTP id o10mr82749903yhb.49.1400762010328; Thu, 22 May 2014 05:33:30 -0700 (PDT) Received: by 10.170.197.73 with HTTP; Thu, 22 May 2014 05:33:30 -0700 (PDT) In-Reply-To: References: <1400678661.5757.3.camel@ubuntu> <1400682231.7338.2.camel@ubuntu> <1400761166.20033.8.camel@ubuntu> Date: Thu, 22 May 2014 08:33:30 -0400 Message-ID: Subject: Re: Expect-continue doesn't seem operative using 4.3.x builder structures From: Karl Wright To: HttpComponents Project Cc: dev Content-Type: multipart/alternative; boundary=089e011615fc0a656404f9fc52e2 X-Virus-Checked: Checked by ClamAV on apache.org --089e011615fc0a656404f9fc52e2 Content-Type: text/plain; charset=UTF-8 I've created HTTPCLIENT-1510 to summarize the problem and propose the outlines of a solution. Karl On Thu, May 22, 2014 at 8:27 AM, Karl Wright wrote: > Let me clarify. Right now, you've a wrapper hierarchy that is totally > distinct from the original request hierarchy. You *could* allow everything > wrapped with HttpRequestWrapper to allow expect/continue, in which case you > lose the ability to have specificity for different kinds of wrapped > requests. Or (much better) you could have all HttpRequest objects have a > "supportExpectContinue" method, which in the wrapper would wind up calling > the embedded request's supportExpectContinue method. Seems much better, no? > > Karl > > > On Thu, May 22, 2014 at 8:23 AM, Karl Wright wrote: > >> >>>>>> >> Are you sure about that? What would this method do for GET requests >> given than those requests are not even supposed to enclose an entity? >> <<<<<< >> >> It would return false for any request implementation that did not support >> expect-continue, of course. >> The advantage of this kind of structure is that it does not rely on the >> implicit instanceof operator, but rather an explicit method implementation, >> so it is clearer (and more flexible). >> >> Karl >> >> >> >> On Thu, May 22, 2014 at 8:19 AM, Oleg Kalnichevski wrote: >> >>> On Thu, 2014-05-22 at 07:55 -0400, Karl Wright wrote: >>> > FWIW, a better way for this kind of thing to be done would be for the >>> > request object to have a method, e.g. "supportsExpectContinue()", that >>> you >>> > would call, instead of relying on class names and hierarchy ... >>> > >>> >>> Are you sure about that? What would this method do for GET requests >>> given than those requests are not even supposed to enclose an entity? >>> >>> Oleg >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org >>> For additional commands, e-mail: dev-help@hc.apache.org >>> >>> >> > --089e011615fc0a656404f9fc52e2--