Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01B649482 for ; Mon, 3 Oct 2011 17:25:11 +0000 (UTC) Received: (qmail 52800 invoked by uid 500); 3 Oct 2011 17:25:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 52745 invoked by uid 500); 3 Oct 2011 17:25:09 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 52737 invoked by uid 99); 3 Oct 2011 17:25:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 17:25:09 +0000 X-ASF-Spam-Status: No, hits=0.4 required=5.0 tests=FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cgsmcmlxxv@gmail.com designates 209.85.160.180 as permitted sender) Received: from [209.85.160.180] (HELO mail-gy0-f180.google.com) (209.85.160.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 17:25:03 +0000 Received: by gyd8 with SMTP id 8so5668078gyd.11 for ; Mon, 03 Oct 2011 10:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=tZFxLLmuamroGEHlQ32fCUbtYBzRVr81WIATOzSCu10=; b=rZPfYG+xcXmg68IWqCWVyGODAxHISPMy11ZszYbCLVgiovjgYVkAFsM5zQ8jVQk4b/ pdeN3+N+ZpKnQ5fD3reIQ9KPpcmvrHYDCutCf4xwF7mrPVLC1cZqGN4HQClN1gRmvRhl BI+0P00h3UUph+s3V3f85w7Ifml7NEPBPGe8I= Received: by 10.223.6.77 with SMTP id 13mr188763fay.135.1317662680991; Mon, 03 Oct 2011 10:24:40 -0700 (PDT) Received: from [192.168.1.100] (078088254132.wroclaw.vectranet.pl. [78.88.254.132]) by mx.google.com with ESMTPS id n12sm22017767fan.9.2011.10.03.10.24.39 (version=SSLv3 cipher=OTHER); Mon, 03 Oct 2011 10:24:40 -0700 (PDT) Message-ID: <4E89EFD6.4000703@gmail.com> Date: Mon, 03 Oct 2011 19:24:38 +0200 From: CGS User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: Accessing Request Parameter in Erlang? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, There are only records of that type (or nested records): http://www.erlang.org/doc/reference_manual/records.html http://www.erlang.org/doc/reference_manual/data_types.html#id72848 and nice to read from: http://20bits.com/articles/erlang-an-introduction-to-records/ Records are more like data structures in JavaScript. Cheers, CGS On 10/03/2011 06:58 PM, Thomas Van de Velde wrote: > Hi, > > In rewriting a Javascript list function to Erlang, I came across the need to > retrieve parameters passed in the HTTP request. In Javascript this is done > with req.query.myparam. Is there an equivalent in Erlang? Also, is there a > place where I can find more documentation? > > Thanks! > > Thomas >