guile-sources
[Top][All Lists]
Advanced

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

Guile-WWW 2.24 available


From: Thien-Thi Nguyen
Subject: Guile-WWW 2.24 available
Date: Wed, 28 Jan 2009 10:49:20 +0100

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




reply via email to

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