[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #688: intarweb: add default reason phrases for respon

From: Chicken Trac
Subject: [Chicken-janitors] #688: intarweb: add default reason phrases for responses
Date: Wed, 07 Sep 2011 21:05:15 -0000

#688: intarweb: add default reason phrases for responses
 Reporter:  syn          |       Owner:  sjamaan
     Type:  enhancement  |      Status:  new    
 Priority:  major        |   Milestone:  4.8.0  
Component:  extensions   |     Version:  4.7.x  
 Keywords:  intarweb     |  
 Currently, intarweb response records have the status code 200 and the
 reason phrase "OK" as defaults. A common blunder that can happen to an
 unsuspecting user is to update the code but not the reason phrase,
 possibly resulting in interesting combinations like "500 OK". Since HTTP
 1.0 and 1.1 define a list of recommended reason phrases it would probably
 make sense to include those in intarweb.

 The attached patch changes the default reason phrase to be #f. If a
 response is written with a reason of #f the list of known status codes is
 checked for the recommended phrase and is used accordingly. Included are
 all phrases listed in RFC 2616, section 6.1.1. This list is exported as a
 parameter so that it can be extended or changed by users (which is
 explicitly allowed by the RFC). An error is raised if neither a reason is
 set in the response record nor its code is included in the list of known
 status codes.

Ticket URL: <>
Chicken Scheme <>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]