guile-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] add web/mime support


From: Catonano
Subject: Re: [PATCH] add web/mime support
Date: Thu, 23 Feb 2012 16:03:33 +0100



Il giorno 23 febbraio 2012 15:53, Nala Ginrut <address@hidden> ha scritto:
There's no mime support in Guile module, so I modified the mime code of my project Ragnarok and format a patch.
It's easy to use:
(use-modules (web mime))
(define mime (make <mime>))
(mime:guess mime 'pdf)
==> application/pdf
(mime:guess mime 'php)
==> application/x-httpd-php

Maybe useful for some guys~
Any comments?

just recently I happened to download something and the mimetype was not textual even though the content was textual indeed (it was a .ram link hat is a url starting with rtsp://...)

So what I got back was a bytevector and I had to decode it in my code; a ugly hack

Personally I'd be interested in see how your stuff could be used together with http-get to download something with a weird mimetype
 
Thanks

reply via email to

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