From dev-return-4969-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Mon Jul 06 04:51:57 2009 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 66639 invoked from network); 6 Jul 2009 04:51:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jul 2009 04:51:57 -0000 Received: (qmail 61014 invoked by uid 500); 6 Jul 2009 04:52:07 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 60925 invoked by uid 500); 6 Jul 2009 04:52:07 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 60915 invoked by uid 99); 6 Jul 2009 04:52:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 04:52:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 72.14.220.156 as permitted sender) Received: from [72.14.220.156] (HELO fg-out-1718.google.com) (72.14.220.156) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2009 04:51:59 +0000 Received: by fg-out-1718.google.com with SMTP id l27so643187fgb.3 for ; Sun, 05 Jul 2009 21:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=7uzO/ArlGxXnCf9H3pQYUjB4YZ41G8kzbEVMlGNtRCc=; b=WcPCDEiVI4De2bDg+kU7naP473wciQ5aLxvG3x0VgxIxphz8L2bLRHqcJIZWnEDu2q VTpplZWuNtFnwVgG9VO66wbxxig1Uv2wlanklGmrv86QKa1tD2bxW2Ad7K8SMWKD9UB7 +dGMrJOFexCCRRnU8xUIQ8qQQYAj1OEvD7tjE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=gTpJvbi5H1wm1fg6P/MDkE5SUxZMu9YJWPiio5EEkYs8LDzNqWC/2mxb8+YR3JxpoJ cYPsZ3VLa213DsQeDMIghVb0vbmqJv2lAR3V6Mnhrz/OIX2yODFHPOcfyZAcpV35rUH3 Zrs4m/RqKJcMvzqASDfWnBXA4Lva/Dqr5mclA= MIME-Version: 1.0 Received: by 10.86.76.11 with SMTP id y11mr1873416fga.56.1246855897852; Sun, 05 Jul 2009 21:51:37 -0700 (PDT) In-Reply-To: References: Date: Mon, 6 Jul 2009 06:51:37 +0200 Message-ID: Subject: Re: proxy handler From: Benoit Chesneau To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2009/7/6 Chris Anderson : > I've heard you can just connect the raw sockets together and it > works... not sure how that would look in practice. > Isn't it possible to only get the body streamed ? If I have a way to fetch the body when its coming (chunked) i could send it. Ince I use i browse to make connextion i could pass body ad fun arity 0 or fun arity1 with a State. Also I could optimize sending of response by streaming from ibrowse to response body. I'm looking at it currently. I saw that you wrote the api to receive body chunked in mochiweb, do you think it's possible get it like it ? - beno=EEt