Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 60103 invoked from network); 4 Jul 2007 10:07:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2007 10:07:01 -0000 Received: (qmail 72037 invoked by uid 500); 4 Jul 2007 10:07:03 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 72018 invoked by uid 500); 4 Jul 2007 10:07:02 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 72009 invoked by uid 99); 4 Jul 2007 10:07:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 03:07:02 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of dykciarz@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 03:06:58 -0700 Received: by py-out-1112.google.com with SMTP id u52so4227800pyb for ; Wed, 04 Jul 2007 03:06:37 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qXOPxo6lz+ugvDjc3yKVmVV4dP+ANaIHFLmYaAKkLN1+LC0bjdGETlUeOH1TPYhf3/EVBkBaFoNoBAXIUjKAkbZsbV4tJ3PxcfdQocsTXeGaPOXAVdQ+vwBQR+vnS+Xtd5gTEwkIdWFQ+hQYRIYFuNsV5e/gKl0PF69Ip41Kheo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BSbjELHqKiY8cwqDkG2od9INy7DM6o1P0aK1wcifBITYLmKGelSjB28ygaWNVXd9w/yxkXIS/XFmqsXZO8BHmS5KVnUu4aCBanxRiS4Yu/xzjIMB13tGe5Uun0wmij8XcKNYW87cO/+Hzrip7FMzpI8wcZI7Wgx6o8ujTO1it1U= Received: by 10.65.153.10 with SMTP id f10mr10275760qbo.1183543596804; Wed, 04 Jul 2007 03:06:36 -0700 (PDT) Received: by 10.65.54.7 with HTTP; Wed, 4 Jul 2007 03:06:36 -0700 (PDT) Message-ID: <1004c13e0707040306m5dc6aeb5sdd41d5d83dd9fcb6@mail.gmail.com> Date: Wed, 4 Jul 2007 12:06:36 +0200 From: Mike To: modules-dev@httpd.apache.org Subject: Re: using mod_deflate inside a module In-Reply-To: <468B41F5.4030509@pisa.iol.it> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <468A68D4.7010202@pisa.iol.it> <20070703213710.GA18965@bastion.lan.sarmacka.net> <468B41F5.4030509@pisa.iol.it> X-Virus-Checked: Checked by ClamAV on apache.org On 7/4/07, Marco Spinetti wrote: > So are you telling me that I should call deflate_in_filter (which is > defined inside mod_defalte) inside my module and then go on with the > uncompressed result? > Could you give me some suggestion about how to do it? you need to include mod_deflate in config: LoadModule mod_deflate.... then in function where you call hooks you need to put this function: ap_add_output_filter("INFLATE", ctx, req, conn); and you'll have inflate filter right before your own. chekc docs for proper usage and parameters. module my_module = { STANDARD20_MODULE_STUFF, my_create_dir_conf, /* Create config rec for Directory */ my_merge_dir_conf, /* Merge config rec for Directory */ my_create_svr_conf, /* Create config rec for Host */ my_merge_svr_conf, /* Merge config rec for Host */ my_cmds, /* Configuration directives */ my_hooks <--- add ap_add... function call into body of this function... } ; Kind regards.