Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-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 71FF27509 for ; Wed, 14 Sep 2011 13:23:34 +0000 (UTC) Received: (qmail 59877 invoked by uid 500); 14 Sep 2011 13:23:33 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 59845 invoked by uid 500); 14 Sep 2011 13:23:33 -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 59837 invoked by uid 99); 14 Sep 2011 13:23:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 13:23:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 13:23:29 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2655C9731F for ; Wed, 14 Sep 2011 13:23:09 +0000 (UTC) Date: Wed, 14 Sep 2011 13:23:09 +0000 (UTC) From: "Jan Lehnardt (JIRA)" To: dev@couchdb.apache.org Message-ID: <1401395049.26601.1316006589153.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1388460102.26371.1316002509192.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (COUCHDB-1281) Implement Accept header based content negotiation for the _changes feed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Lehnardt updated COUCHDB-1281: ---------------------------------- Skill Level: New Contributors Level (Easy) > Implement Accept header based content negotiation for the _changes feed > ----------------------------------------------------------------------- > > Key: COUCHDB-1281 > URL: https://issues.apache.org/jira/browse/COUCHDB-1281 > Project: CouchDB > Issue Type: Improvement > Components: HTTP Interface > Reporter: Benjamin Young > Labels: api, http, httpmime, rest, restful > > Current "continuous" and "longpoll" (and potentially text/event-stream feeds; see COUCHDB-986) are selectable only via a "feed" query parameter. Ideally, it would be best for these feed types to be made available based on Accept headers sent with the request. Browsers and "lesser" HTTP clients who don't offer header alteration or addition could fall back to the current "feed" query param as needed. > This addition would allow clients to send "Accept: text/event-stream" (or other mimetypes) with a _changes feed request and receive the stream body in that mimetype. The current "continuous" and "longpoll" responses would need their own registered mimetypes (rather than just text/plain or application/json). These mimetypes could still be used in conjunction with the "feed" query param. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira