From: Roman V Shaposhnik <rvs@sun.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] Different representations of the same file/resource in a synthetic FS
Date: Tue, 9 Jun 2009 10:14:13 -0700 [thread overview]
Message-ID: <1244567653.9958.1733.camel@work> (raw)
Working on a RESTful API lately (which is as close to working on a 9P
filesystem as I can get these days) I've been puzzling over this issue:
is content negotiation a good thing or a bad thing? Or to justify
posting to this list: what would be the proper 9P way of not only
representing different "renditions" of the same information in
a synthetic filesystem but also give consumer a chance to declare
*a set* of preferred ones.
Lets assume a classical example (modified slightly to fit 9P):
a synthetic filesystem that serves images from a web cam.
The very same frame can be asked for in different formats
(.gif, .png, .pdf, etc.). Is serving
/<date>/<time>/<camera-id>/gif/frame
/<date>/<time>/<camera-id>/png/frame
...
/<date>/<time>/<camera-id>/pdf/frame
and relying on reading
/<date>/<time>/<camera-id>
for the list of "supported" representations really better
than what HTTP content negotiation offers?
Thanks,
Roman.
next reply other threads:[~2009-06-09 17:14 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 17:14 Roman V Shaposhnik [this message]
2009-06-09 17:27 ` andrey mirtchovski
2009-06-09 18:10 ` erik quanstrom
2009-06-09 19:01 ` andrey mirtchovski
2009-06-11 3:44 ` Roman V. Shaposhnik
2009-06-11 4:49 ` [9fans] Different representations of the same lucio
2009-06-13 1:02 ` Roman V Shaposhnik
2009-06-13 1:56 ` erik quanstrom
2009-06-16 23:12 ` Roman V Shaposhnik
2009-06-17 8:54 ` Charles Forsyth
2009-06-18 0:20 ` Roman V Shaposhnik
2009-06-13 3:43 ` lucio
2009-06-16 23:15 ` Roman V Shaposhnik
2009-06-09 17:30 ` [9fans] Different representations of the same file/resource in a synthetic FS J.R. Mauro
2009-06-09 18:15 Francisco J Ballesteros
2009-06-09 18:59 erik quanstrom
2009-06-09 19:16 erik quanstrom
[not found] <eed9f9e37182c89c3e8a9982844f9d0f@quanstro.net>
2009-06-09 19:31 ` andrey mirtchovski
2009-06-09 19:41 erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1244567653.9958.1733.camel@work \
--to=rvs@sun.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).