On Tue, 2014-08-26 at 13:30 +0800, Nala Ginrut wrote:
I attached the patch here.
The patch works for me. And I've tested it compared to the old way, say,
read the content to memory then pass it as the body then send to the
client.
Please test this feature with bigger file (larger than
I'm trying to handle static file with our sendfile, but I realized it's
impossible to call it in the handler of run-server.
Although sanitize-response supports procedure as body, it never let me
use sendfile at any chance, because the final writing operation should
be delayed to server-impl-write.
Hi Nala,
Nala Ginrut nalagin...@gmail.com writes:
I'm trying to handle static file with our sendfile, but I realized it's
impossible to call it in the handler of run-server.
Although sanitize-response supports procedure as body, it never let me
use sendfile at any chance, because the final
hi David!
2014年8月25日 下午8:16于 David Thompson dthomps...@worcester.edu写道:
Hi Nala,
I'm currently writing a web application using Guile's built-in HTTP
server. To serve static files, I build a response like:
(values `((content-type . (text/css)))
(call-with-input-file file-name
I attached the patch here.
The patch works for me. And I've tested it compared to the old way, say,
read the content to memory then pass it as the body then send to the
client.
Please test this feature with bigger file (larger than 20MB), the small
file is hard to show the difference.
On