Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 90828 invoked from network); 2 Feb 2010 15:15:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2010 15:15:38 -0000 Received: (qmail 71762 invoked by uid 500); 2 Feb 2010 15:15:38 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 71681 invoked by uid 500); 2 Feb 2010 15:15:38 -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 71671 invoked by uid 99); 2 Feb 2010 15:15:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 15:15:37 +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 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-px0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 15:15:31 +0000 Received: by pxi10 with SMTP id 10so142139pxi.13 for ; Tue, 02 Feb 2010 07:15:10 -0800 (PST) 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=ye5fQrfnDp2f5KfhjgJcToAPQ5RcFQbhOhM9LprHEfA=; b=TgJUZUMZh0GW5/TnB55lBnUbK9nPXtWMxLZpKLZ9WwRxLHMz+LMYiPcQumX+jCumGd +01CjNzOJHk4yRnSyH9+HrOnNIIzNlL1FVUNJSzZRUAp2Ak2i2pAKAMo289oZmZjB4Rl NC3GCS9GnDcydb28MIT3vlfcEUjVpZL2JDVTE= 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=iK+pa6I+drYVhM4A7jZ8MRUDyKVhYAAQSnCX1iY9M0LsQKfGEhxBmUWL8xCkpa7LAS rRtUiPkqc2e/ZVURVOPMSKmq/h9OyoyGUFOSP/g1y4mlpRT4vOiravJmK9TIEMPcE+DD RmpSeghxctt1UMxoz2GWn88yj+2q8tr2UT244= MIME-Version: 1.0 Received: by 10.141.125.18 with SMTP id c18mr4248935rvn.18.1265123706292; Tue, 02 Feb 2010 07:15:06 -0800 (PST) In-Reply-To: References: Date: Tue, 2 Feb 2010 16:15:06 +0100 Message-ID: Subject: Re: new member of #http record ? From: Benoit Chesneau To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Feb 2, 2010 at 2:09 PM, Benoit Chesneau wrote= : > Any objection I add UrlHandlers and DefaultFun to the #http record. > Would be usefull for any custom handler that need to use the > http_handler and not only the db and design http handlers. Like for > example in the rewriter. > > So record would become : > > -record(httpd, > =A0 =A0{mochi_req, > =A0 =A0peer, > =A0 =A0method, > =A0 =A0path_parts, > =A0 =A0db_url_handlers, > =A0 =A0user_ctx, > =A0 =A0req_body =3D undefined, > =A0 =A0design_url_handlers, > =A0 =A0auth, > =A0 =A0default_fun, > =A0 =A0url_handlers > =A0 =A0}). > > This is really a small change but very useful since we don't need to > have read a new time the ini for that. > > - benoit > Hi created a ticket with the needed diff for that : https://issues.apache.org/jira/browse/COUCHDB-637