« Customization vs handler dispatch in web application serversIt seems to be working for Jesus »

Short list of things CherryPy should do

10/21/05

Permalink 03:37:20 pm, by fumanchu Email , 227 words   English (US)
Categories: CherryPy

Short list of things CherryPy should do

Sylvain just reminded me of one of Ryan Tomayko's early rants on HTTP and REST, On HTTP Abuse. It was probably the one post that jump-started my exploration of REST, which has been guiding my contributions to CherryPy.

In that post, he presented a short list of things which a "web framework" should provide:

For instance, which frameworks ...
  1. ... help implement content negotiation properly?
  2. ... provide facilities for implementing a smart caching strategy for dynamic content? (proper use of If-Modified-Since, Expires, Cache-Control, etc.)
  3. ... make dealing with media types easy?
  4. ... make dealing with character encodings easy?
  5. ... encourage the use of standard HTTP authentication schemes?
  6. ... have a sane mechanism for attaching different behavior to different verbs for a single resource?
  7. ... help ensure that URIs stay cool?
  8. ... make dealing with transfer encodings (gzip, compress, etc.) easy?
  9. ... help you use response status codes properly? (e.g. Nearly all dynamic content returns either a 200 or 500).

Even if CherryPy isn't a framework, it should do most of these. The latest release of CherryPy, version 2.1, addresses some of these (3, 4, 5, 8, and 9). The others are possible, but not as easy as they could be; 1, 2, and 6 are top priorities (for me, anyway) to work into version 2.2. Items 3 and 4 could use more work, too.

2 comments

Comment from: Adrian Holovaty [Visitor] · http://www.holovaty.com/

I've posted a point-by-point response to Ryan's article as to how Django handles the issues he brought up. It does rather well. :-)

http://www.djangoproject.com/weblog/2005/oct/24/http/

10/24/05 @ 20:42
Comment from: fumanchu [Member] Email

Hey, thanks for the link, Adrian! Oddly enough, I read your post immediately after it was created, by mere chance. I was cruising the django site, looking for answers to my config and dispatch questions (see the post I just made; corrections welcome).

Congratulations on the continued flurry of development regarding Django. :) I hope we can both exceed Ryan's desires Real Soon Now...

10/25/05 @ 03:05

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.

Please enter the phrase "I am a real human." in the textbox above.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
October 2017
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Search

The requested Blog doesn't exist any more!

XML Feeds

powered by b2evolution free blog software