From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.sources Subject: Guile-WWW 2.24 available Date: Wed, 28 Jan 2009 10:49:20 +0100 Message-ID: <87mydbkbfj.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233136430 19100 80.91.229.12 (28 Jan 2009 09:53:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2009 09:53:50 +0000 (UTC) Cc: guile-user@gnu.org To: guile-sources@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jan 28 10:55:02 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LS78F-0002Sm-G1 for guile-user@m.gmane.org; Wed, 28 Jan 2009 10:54:51 +0100 Original-Received: from localhost ([127.0.0.1]:55511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LS76x-0004Z1-KQ for guile-user@m.gmane.org; Wed, 28 Jan 2009 04:53:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LS76l-0004T3-SY for guile-user@gnu.org; Wed, 28 Jan 2009 04:53:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LS76k-0004SW-TQ for guile-user@gnu.org; Wed, 28 Jan 2009 04:53:19 -0500 Original-Received: from [199.232.76.173] (port=32957 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LS76e-0004Ml-Bd; Wed, 28 Jan 2009 04:53:12 -0500 Original-Received: from smtp-out25.alice.it ([85.33.2.25]:1712) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LS76d-0001Ch-Qm; Wed, 28 Jan 2009 04:53:12 -0500 Original-Received: from FBCMMO03.fbc.local ([192.168.68.197]) by smtp-out25.alice.it with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 Jan 2009 10:53:12 +0100 Original-Received: from FBCMCL01B08.fbc.local ([192.168.171.46]) by FBCMMO03.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 Jan 2009 10:53:05 +0100 Original-Received: from ambire.localdomain ([79.45.67.199]) by FBCMCL01B08.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 Jan 2009 10:49:07 +0100 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1LS72u-0001sD-Uk; Wed, 28 Jan 2009 10:49:20 +0100 X-OriginalArrivalTime: 28 Jan 2009 09:49:07.0328 (UTC) FILETIME=[A974B800:01C9812D] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7115 gmane.lisp.guile.sources:317 Archived-At: release notes: Starting in 2010, Guile-WWW modules will no longer export data; i.e., exported procs yes, exported data no. Practically, this means that the proc `(www server-utils filesystem) filename->content-type' now uses the public alist from module `(www data content-type)' to init the internal table, but will no longer after 2009-12-31. This is for temporary backward compatibility (previously, it consulted that alist directly). If you have code that uses `filename->content-type', you should future-proof it by initializing the table yourself, like this: (use-modules ((www server-utils filesystem) #:select (filename->content-type)) ((www data mime-types) #:select (reset-mime-types! put-mime-types-from-file!))) ;; Init the table. The strange first call triggers internal init. ;; It can be removed safely after 2009, but leaving it in is harmless. (filename->content-type "") (reset-mime-types! 491) (put-mime-types-from-file! 'stomp "/etc/mime.types") See also: http://www.gnuvola.org/software/guile-www/doc/mime_002dtypes.html ttn musings: - The hash-table niceties in module (www data mime-types) should probably be generalized and merged into module (ice-9 mapping) in Guile, ... but not before the re-introduction of Pascal strings (bwahahaha). - Even more tasty is the `scm-error' wrapper. Minimally, Guile-WWW itself should move away from calling `error' directly, preferring typed throws. Error index (doc) can then be autosnarfed. Happy new year(s)! thi README excerpt: This is the Guile WWW library, a set of Guile Scheme modules to facilitate HTTP, URL and CGI programming. NEWS excerpt: - 2.24 | 2009-01-27 - new module: (www data mime-types) - new (www data http-status) proc: http-status-string - new entries for alist `*content-type-by-filename-extension*' - svg => image/svg+xml - css => text/css - MARKED FOR REMOVAL 2009-12-31 - module (www data content-type) - data structures in module (www data http-status) - *http-status* - *http-status*-META tarball, prettified source, etc, in dir: http://www.gnuvola.org/software/guile-www/ atom feed: http://www.gnuvola.org/NEWS.atom