Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-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 7EA0AC7AF for ; Thu, 23 Aug 2012 21:54:27 +0000 (UTC) Received: (qmail 32125 invoked by uid 500); 23 Aug 2012 21:54:26 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 31956 invoked by uid 500); 23 Aug 2012 21:54:26 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 31948 invoked by uid 99); 23 Aug 2012 21:54:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2012 21:54:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.97.132.81] (HELO homiemail-a24.g.dreamhost.com) (208.97.132.81) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2012 21:54:21 +0000 Received: from homiemail-a24.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a24.g.dreamhost.com (Postfix) with ESMTP id 761A92C806D for ; Thu, 23 Aug 2012 14:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=DL0i3uZAB3yEHW71tZRWsGCmg7U=; b=NNsyf/4XpwvIDFAFP+PjFf4qZY4i QBsUq+I8GoRHIZJgYufAq2mn0wDX3LbxnJqH+WdTxESoPf5MpE0PkEr7lARirocK s7kMYZXIurNKN/NrQlDd5kRYfYS2czQL/Qs5bhv+sw9IdIlP6zcRhnf8nDvxUEJ0 91GZE3XkMYHZ1s0= Received: from [192.168.1.84] (99-21-208-82.lightspeed.irvnca.sbcglobal.net [99.21.208.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a24.g.dreamhost.com (Postfix) with ESMTPSA id 5D3332C8058 for ; Thu, 23 Aug 2012 14:54:00 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Ideas for an output filter for mod_lua From: "Roy T. Fielding" In-Reply-To: <20120823224910.577a5ab5@baldur> Date: Thu, 23 Aug 2012 14:54:10 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5034BBE2.4090903@cord.dk> <88E2A29E-FB86-4EB1-B224-601EEE861D54@webthing.com> <50354E2D.5070408@cord.dk> <503609B3.5090301@cord.dk> <0847B62A-1FAB-445F-804D-7C87114B8823@jellybaby.net> <20120823224910.577a5ab5@baldur> To: dev@httpd.apache.org X-Mailer: Apple Mail (2.1278) X-Virus-Checked: Checked by ClamAV on apache.org On Aug 23, 2012, at 2:49 PM, Nick Kew wrote: > On Thu, 23 Aug 2012 22:32:20 +0100 > Tim Bannister wrote: >=20 >=20 >> That's quite neat, then. I will try to make an actual implementation = in Lua. >> The part I found difficult was the interaction with the second = transfer-encoding, =93chunked=94. Using gzip Transfer-Encoding: implies = using chunked, because we want to shorten the response and this means = that the Content-Length definitely doesn't match the size of the HTTP = response body. >=20 > gzip is a content-encoding, not a transfer-encoding. It is both. Transfer-Encoding is the correct way to implement it. > That makes it easy to implement: content filters and protocol > filters work at different levels, so can coexist without trouble. Except that they aren't standards-compliant because they don't handle etags correctly. Content-Encoding works with more clients but is much harder to implement correctly. ....Roy