From: Andy Wingo <wingo@pobox.com>
To: romel@lavabit.com
Cc: guile-user@gnu.org, Neil Jerram <neil@ossau.uklinux.net>
Subject: Re: Serving files with guile web server
Date: Thu, 31 Mar 2011 16:44:24 +0200 [thread overview]
Message-ID: <m38vvvxsc7.fsf@unquote.localdomain> (raw)
In-Reply-To: <18101.189.215.48.232.1300553233.squirrel@lavabit.com> (romel@lavabit.com's message of "Sat, 19 Mar 2011 12:47:13 -0400 (EDT)")
On Sat 19 Mar 2011 17:47, romel@lavabit.com writes:
>> romel@lavabit.com writes:
>>
>>> I gave a second read to the manual and found:
>>>
>>> "The handler should return two values: the response, as a <response>
>>> record from (web response), and the response body as a string,
>>> bytevector,
>>> or #f if not present."
>
> This is true but I found that when it comes about text is better to use a
> lambda that receive a port and then write text to that port.
I have added info about returning procedures as response bodies to the
doc. Thanks.
It would be good for sanitize-response to support ports as well, I
think.
> I think that it would be great to have a standalone server so you can
> instant hack something, or even for production, I think it could be
> scalable using clusters.
I think more standalone capabilities is a good thing. It's nice to be
able to throw up a server for testing. For production though you really
need to not do blocking reads or writes.
> Guile web module it's great!
Thanks! Have fun and let us know how it goes :)
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2011-03-31 14:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-16 23:33 Serving files with guile web server romel
2011-03-17 14:55 ` romel
2011-03-19 2:20 ` Neil Jerram
2011-03-19 16:47 ` romel
2011-03-19 18:17 ` Neil Jerram
2011-03-19 22:23 ` romel
2011-03-31 14:44 ` Andy Wingo [this message]
2011-03-22 8:51 ` Thien-Thi Nguyen
2011-03-31 14:23 ` Andy Wingo
2011-03-31 15:09 ` Andy Wingo
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=m38vvvxsc7.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=guile-user@gnu.org \
--cc=neil@ossau.uklinux.net \
--cc=romel@lavabit.com \
/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).