unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: guile-sources@gnu.org
Cc: guile-user@gnu.org
Subject: Guile-WWW 2.24 available
Date: Wed, 28 Jan 2009 10:49:20 +0100	[thread overview]
Message-ID: <87mydbkbfj.fsf@ambire.localdomain> (raw)

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	other threads:[~2009-01-28  9:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mydbkbfj.fsf@ambire.localdomain \
    --to=ttn@gnuvola.org \
    --cc=guile-sources@gnu.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).