* Guile-WWW 2.24 available
@ 2009-01-28 9:49 Thien-Thi Nguyen
0 siblings, 0 replies; only message in thread
From: Thien-Thi Nguyen @ 2009-01-28 9:49 UTC (permalink / raw)
To: guile-sources; +Cc: guile-user
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-28 9:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-28 9:49 Guile-WWW 2.24 available Thien-Thi Nguyen
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 read-only IMAP folder(s) and NNTP newsgroup(s).